This course has been updated! We now recommend you take the Complete Intro to React, v8 course.

Check out a free preview of the full React.js (with Introduction to Flux Architecture) course:
The "Setting State" Lesson is part of the full, React.js (with Introduction to Flux Architecture) course featured in this preview video. Here's what you'd learn in this lesson:

Generally, it’s better if components don’t have state and only function based on the props they are passed. However, when state is required, React has an API for setting the initial state and updating the state. Ryan creates a summary/details component to explain how React manages state.

Get Unlimited Access Now