DEV Community

Discussion on: Render props and render functions in React.

Collapse
 
ashobiz profile image
Ashok

Nice example. I really like the way how you created multiple states with just single useState and update state easily with single function.

Collapse
 
jordandev profile image
Jordan Jaramillo

Thanks. It works very well with small examples and it can be improved by making a custom hook, I will take it into account for future examples.