Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Button to create a component / Transitioning between templates #1095

Answered by Archmonger
dnl0037 asked this question in Question
Discussion options

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?

You must be logged in to vote

Yes. Both of these are achieved through conditional rendering.

The in-progess docs has an example on this.

Replies: 1 comment

Comment options

Yes. Both of these are achieved through conditional rendering.

The in-progess docs has an example on this.

You must be logged in to vote
0 replies
Answer selected by Archmonger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /