- Create a new rsbuild React project (recommended):
# interactive starter that installs correct rsbuild packages
npm create rsbuild@latest my-todo
cd my-todo- Replace the generated
index.htmlandsrcfiles with the files above (or copy thesrccontents into your project). - Install deps (if not already):
npm install- Start dev server:
npm run dev
# open http://localhost:5173 (or the port rsbuild shows)- Build for production:
npm run build
npm run preview- Replace
localStoragewith a backend API to persist across devices. - Add filtering (active/completed), bulk actions, or drag-and-drop reordering.
- Add unit tests and E2E tests.
That's the complete small Todo app ready to run with rsbuild. Copy the files into your rsbuild project and npm run dev to try it.