Put in order · JavaScript and React course · Module 3: State and Events
State Management Patterns
Arrange the ways of keeping state from the simplest to the most elaborate, as in the lesson on data flow:
Items to put in order
- State lifted to the common parent (lifting state up)
- Local state in one component (useState)
- A global state library (e.g. Redux)
- Context (Context API) for data needed in many places
You can check the correct answer by solving this task in the CodeWorlds game.