Small project(s) to kickstart my learning in React
A minimalist and responsive to-do list app built using React, TypeScript, and CSS Modules. Tasks are saved in the browser's localStorage so your list persists even after refreshing the page.
- β Add tasks using the input field or Enter key
- β Rejects tasks that are empty or contain only numbers/special characters
- β Shows an inline error message if the input is invalid
- β Delete tasks individually
- β
Tasks persist using
localStorage
- β Clean, responsive UI with custom styling using CSS Modules
- React
- TypeScript
- CSS Modules
localStorage
for data persistence
-
Clone the repository
git clone https://github.com/yourusername/todo-app.git cd todo-app
-
Install dependencies
npm install
-
Run the app
npm start
-
Open http://localhost:3000 to view it in the browser.
src/
βββ App.tsx # Main React component
βββ App.module.css # Component-level styles using CSS Modules
βββ index.tsx # App entry point
- The app uses a regex check to ensure that each task contains at least one letter. It won't accept inputs that are only numbers or special characters.
- All tasks are stored in your browser's localStorage and will remain until manually cleared or deleted.
This project is open-source and available under the MIT License.
Built with love using React & TypeScript π
---