First React form

Handling a web form with React is very elegant. The deceivingly tricky part is handling the ‘state’ at a parent level, letting the child change it only with a call back. So ‘props’ can go down the chain, not up. “The props are immutable, whereas state is not. Typically state variables are passed down to child components as prop, because the children don’t maintain or modify them ” (vasansr, 1651) Me thinks there be a bit of a learning curve to this declarative programming.

Leave a Reply

Your email address will not be published. Required fields are marked *