React Tutorial #4: Props and State
In the previous tutorial, you learned JSX. Now let’s look at the two most important concepts in React: props and state. Props pass data into a component. State is data that the component manages internally. Understanding when to use each one is key to writing good React code. Props: Passing Data Into Components Props (short for “properties”) are how you pass data from a parent component to a child component. Props flow one way: from parent to child. ...