A simple todo list app built with React and Vite.
Live site: https://maeeast.github.io/react-todo/
- Add and delete todos
- Persists todos in your browser using
localStorage - Fast local dev server and builds via Vite
- React
- Vite
- GitHub Pages (deployment)
- Node.js 20.19+ (or 22.12+) recommended for Vite 7
npm installnpm run devVite will print the local URL (often something like http://localhost:5173/react-todo/).
npm run buildThe production build outputs to dist/.
npm run previewThis repo deploys the dist/ folder to GitHub Pages using GitHub Actions.
Key details:
vite.config.jssetsbase: "/react-todo/"for repo pages- GitHub Pages should be set to Source: GitHub Actions
If you fork this repo, update the base path in vite.config.js to match your repo name.
- Todos are stored in
localStorage, so they are specific to the browser/device you use. - Clearing site data in your browser will remove the saved todos.