Loading tutorials
useState. You will split the to-do app into smaller components and pass data to them through props.2 min readuseState. It also assumes you know basic HTML forms. Here you will connect user actions to your code with event handlers.2 min readuseState, JSX, and basic event handlers, and that you have a Vite React project running. You will build the form that adds to-dos to the list.2 min readmap method and have the App component from the earlier chapters, which keeps a todos array in state. Each to-do is an object with id, title, and done.2 min readuseState, controlled inputs, and rendering lists with keys. It also assumes you know the array methods map and filter and the spread syntax. You will add toggle and delete behavior to the to-do list and learn why React needs new objects and arrays instead of edite2 min readuseState, props, controlled inputs, and immutable updates with map and filter. Here you will move all the to-do state into one place, so every component that needs the list reads from the same copy.2 min readuseState, and read map and filter. It also assumes the to-do app from earlier chapters keeps its list in App. You will add a filter (all, active, completed) and a remaining-items count. Neither needs a new copy of the data.2 min readApp, a TodoItem component with onToggle and onDelete props, and controlled inputs. You should also be comfortable with map and the spread syntax.2 min readuseState in App, and that you know map, filter, and spread syntax. Here you move the update logic out of the component and into a reducer.2 min readuseState or useReducer holding a todos array, and that you know what a React effect is at a basic level. Each chapter in this tutorial covers one concept, so the reusable hook comes late3 min readuseState, useEffect, and how a useReducer result is used. Here you move the persistence code out of App and into a reusable custom hook.2 min readApp and moved its update logic into todosReducer, as in the previous chapters. You should also be comfortable with props and with useReducer.2 min readTodoItem component, filter state, and a remaining count. It also assumes you know basic HTML form elements. Accessibility here means people can use the app with a keyboard, a screen reader, or other assis2 min readApp component from the earlier chapters. It also assumes you know basic async/await. The examples use Vitest as the test runner. Jest works the same way once the DOM environment2 min read