re: Beginner's experience with React - a shout for feedback VIEW POST

FULL DISCUSSION
 

What's the best way to 'ADD' a component on the click of a button?

Render the component conditionally based on a a state, when you click the button change the state value so the component will be rendered by React.

 

So yeah Not very different from what I did...
I just thought maybe there is another more clever way....

code of conduct - report abuse