DEV Community

JC Latam
JC Latam

Posted on

State vs Props

Props and state are related. The state of one component will often become the props of a child component. Props are passed to the child within the render method of the parent as the second argument to React.createElement() or, if you're using JSX, the more familiar tag attributes.

Source: https://stackoverflow.com/

Top comments (0)