Learn React from Scratch: State, Props & Effects
Learn React from scratch the way the React team teaches it today: components and props, state as a snapshot, updating data without mutating it, structuring state, and when you really need an effect. For beginners who know basic JavaScript.
Instructor: iCourse Team. Duration: 1 hr. Category: Frontend.
Lessons
- Components and JSX (6 min)
- Passing data with props (7 min)
- Rendering lists and keys (6 min)
- Events and state (6 min)
- State is a snapshot (7 min)
- Updating objects and arrays (7 min)
- Choosing a good state structure (7 min)
- Effects, and when you don't need one (7 min)
- Capstone: design a shop list app (6 min)
What you will learn
- Write function components with JSX and pass data between them with props
- Render lists correctly, with stable keys
- Use state and events, and explain why state behaves like a snapshot
- Update objects and arrays in state without mutating them
- Structure state so it stays simple, with no duplicated or contradictory values
- Decide when an effect is needed, and write one that cleans up after itself
Before you start
- Basic JavaScript: variables, functions, arrays, objects and arrow functions
- Comfort reading HTML
- Optional: Node.js installed, to try the examples in a free starter project
All courses