React

React components are JavaScript functions for web and native user interfaces.

Props and state

Unlike props which are passed to components as the first function parameter, state is initiated and stored within a component. You can pass the state information to children components as props, but the logic for updating the state should be kept within the component where state was initially created.

References

React
Interactive graph
On this page
References