Skip to content

CodeFusion-Labs/todoList-Reactjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React TodoList App

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.

Table of Contents

Demo

Check out the live version here: TodoList App

Features

  • Add new tasks with descriptions.
  • Mark tasks as completed or uncompleted.
  • Delete tasks from the list.
  • Save tasks to localStorage so they persist after refreshing the page.
  • Responsive design and easy to use.

Technologies Used

  • 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.

Deploying to GitHub Pages

To deploy this React app on GitHub Pages, follow these steps:

  1. Install gh-pages:

    npm install gh-pages --save-dev
    

Update package.json:

Add the following "homepage" field:

json Copier le code "homepage": "https://CodeFusion-Labs.github.io/todoList-Reactjs"

Add the deploy script:
 ```json
 //Copier le code
"scripts": {
 "predeploy": "npm run build",
 "deploy": "gh-pages -d dist"

}

Update Vite Config: In vite.config.js, add the following to set the base path:
```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/

About

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors