A simple TodoList application built with React, utilizing key React concepts like JSX components, props, useState, useEffect, and localStorage. The app allows users to add, delete, and save tasks in their browser's local storage. It is deployed using GitHub Pages.
Check out the live version here: TodoList App
- Add new tasks with descriptions.
- Mark tasks as completed or uncompleted.
- Delete tasks from the list.
- Save tasks to
localStorageso they persist after refreshing the page. - Responsive design and easy to use.
- React: For building the user interface.
- JSX: To write components.
- useState: To manage state within components.
- useEffect: To handle side effects like interacting with
localStorage. - localStorage: For persistent data storage in the browser.
- GitHub Pages: For deployment.
To deploy this React app on GitHub Pages, follow these steps:
-
Install
gh-pages:npm install gh-pages --save-dev
Update package.json:
json Copier le code "homepage": "https://CodeFusion-Labs.github.io/todoList-Reactjs"
```json
//Copier le code
"scripts": {
"predeploy": "npm run build",
"deploy": "gh-pages -d dist"
}
```javascript
Copier le code
base: '/todoList-Reactjs/',
Deploy the app:
```bash
Copier le code
npm run deploy
After running this command, your app will be deployed and accessible at:
https://CodeFusion-Labs.github.io/todoList-Reactjs/