DEV Community

Discussion on: Explain React to Me

Collapse
 
roggc profile image
roggc

From my point of view, react is awesome. As they have said it's all about functions which at the end returns markup to render or update, based on props and state. State is like data kept in memory which you can use to determine function behaviour. You can lift up state and pass it down through props in order one component interacts or affect another. Flow is always downwards. If you define state locally there is no way this information goes up in the tree hierarchy. It is for this reason lifting state up. You can do test driven development with react. React is simple but powerfull.