Check out a free preview of the full React.js (with Introduction to Flux Architecture) course:
The "Setting State in React" 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.