Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed React Basics!
You have completed React Basics!
Preview
Let’s go over the key concepts you learned in this stage.
Resources
- State: A Component's Memory
- useState
- Responding to Events
- Browser event names
- set functions, like setSomething(nextState)
- Render and Commit
- State as a Snapshot
- Updating state based on the previous state
- Queueing a Series of State Updates
Treehouse Courses, Workshops, and Practices
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
We started by exploring
the concept of state in React.
0:00
State is the heart of
every React application,
0:03
representing the data
that changes over time.
0:06
I introduced you to your very first hook,
the useState hook,
0:09
which helps us create and
maintain the state.
0:14
Remember, there is one
main rule to using hooks.
0:17
They can only be called at
the top level of your components.
0:21
Next, we explored event handling in React.
0:26
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up