React: getting started

Lesson 02 · 11 min

Props and state

Props come from above. What's yours and changes is state. Don't mix them up.

11 minLesson 2 of 8Practice includedAsk AI on any point

Props are a component's arguments. The parent passed name; you read it and render it. You can't change props inside: data flows down. If you need to remember a click, an input value, or whether a drawer is open — that's useState.

Sign in to continue

The rest of this lesson opens after sign up

The first lesson of every course is open without an account. To read on, solve the practice and use Ask, create a free account or log in.