Introduction to React
summary
A minimal React to‑do is built live: a vanilla JavaScript version then a React version rendered into a single root div using CodeSandbox and JSX. The app keeps items in component state, uses a controlled input with onChange to store inputValue, adds items via setState and removes by passing a remove handler down through props (keys use index here). The demo shows converting functional components to class components, mapping data to list items, and the virtual DOM driving updates.
AI-written summary · about
chapters (20)
- 0:00Why React
- 1:53React benefits and drawbacks
- 3:27Declarative vs imperative
- 5:12Tools and setup
- 6:37Vanilla JavaScript to-do app
- 11:57Creating HTML with JavaScript
- 14:57React low-level API demo
- 18:54First React component
- 23:25List item component
- 25:08Stateful class component
- 31:29Refactoring components
- 33:52Adding form and input
- 35:51Handling form events
- 37:30Controlled components
- 42:26State management
- 43:17Removing items
- 47:58Passing props deep
- 53:02Live coding recap
- 53:24React component patterns
- 57:16React lifecycle methods
