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
In React, "state" is the data you want to track in your app. State is what allows you to create components that are dynamic and interactive, and it's the only data that changes over time.
Resources
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
Our grocery list app is currently
missing important functionality.
0:00
We're unable to make any
updates to the data.
0:00
We can't change the quantity for an item
or remove an item once we purchased it.
0:04
Our UI is static because
our data is static.
0:09
There are two ways that data gets
handled in React, props and state.
0:14
So far, we've built our application
using functions that take in props and
0:20
return React elements.
0:25
However, it's important to note
that props are strictly read-only.
0:27
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