Button to create a component / Transitioning between templates #1095
-
Hi, I am new to react, html and css, but have some experience on python. Now, with react.py, I am trying to code a web app and encountered these doubts: 1) is it possible to have a buttom with a function that generates a new component? For example, a buttom that creates a table. 2) How can I transition from one template to another? |
Beta Was this translation helpful? Give feedback.
Answered by
Archmonger
Jul 11, 2023
Replies: 1 comment
-
Yes. Both of these are achieved through conditional rendering. The in-progess docs has an example on this. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Archmonger
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes. Both of these are achieved through conditional rendering.
The in-progess docs has an example on this.