Loading tutorials
App component, and a small component tree rendered from plain data. State, events, and forms come in later chapters.5 min readuseState. It assumes you know JavaScript functions, arrays, objects, destructuring, and spread syntax. It also assumes you can read basic JSX and that you have a Vite React project that runs with npm run dev. Props, forms, a5 min readmap and filter), basic HTML forms, and the basics of useState. You should also have a Vite React project running, with a working App component that keeps to-dos in state.6 min readuseState from the previous chapters, and are comforta5 min readuseState, and attach event handlers such as onClick. It also assumes you are comfortable with array spread syntax and basic HTML forms. By the end, you will have a form that adds new to-dos to a list held in state.5 min readkey. It assumes you know Array.prototype.map, can write function components with props, and have a working useState array of to-dos from the earlier chapters.5 min readuseState, and you are comfortable with map, filter, and the spread syntax. The to-do list already renders from a todos array held in state. Now you will change items in that array without breaking React's change detection.4 min readuseState, and update arrays with map, filter, and spread syntax without mutating them. You should also know how a controlled input works. Here you decide which component should own the to-do list, and you rewire the app ar5 min readuseState, and update arrays immutably with map, filter, and spread syntax. It also assumes your App component already holds the todos array, as in the previous chapter on lifting state up.5 min readApp owns the todos array with useState, and TodoItem receives todo, onToggle, and onDelete as props. It also assumes you are comfortable with controlled inputs, immutable updates with map, and the useRef and `useEffec5 min readtodos array in useState, immutable updates with map, filter and spread, and the state lifted into App. You should be comfortable with switch statements and array methods.4 min readlocalStorage and read it back on load.5 min readlocalStorage with a lazy initializer and an effect inside App. This chapter moves that logic into a reusable custom hook. It assumes you know useState, useEffect and its dependency array, and basic localStorage and JSON usage. It also assumes you5 min readtodosReducer, an App component that owns the to-do list, and presentational components such as TodoItem that receive todo, onToggle, and 5 min readTodoItem components that receive callbacks through props. You should know basic HTML forms and how React renders JSX. No assistive technology experience is needed.5 min readApp component with a controlled "New task" input, an "Add" button, and a list of items. It also assumes you can read basic async/await code and have used npm. You will write tests that check what a user sees and does, no5 min read