← React Beginner Questions - Set 11 Q101

What is the difference between React’s state and props?

React Beginner Questions - Set 11

Example

<Child label="fixed" />                 {/* prop: given */}
const [label, setLabel] = useState();  {/* state: owned */}

What to notice

← Back to the question list