π Welcome to the To-Do App project! π This dynamic and interactive to-do list application ποΈ is built using ReactJS βοΈ. It allows users π₯ to add π₯ new tasks β and delete β tasks by clicking on them. With the help of React-Bootstrap π¨, the app is styled elegantly for a great user experience. π
The To-Do App π is designed to help you manage your tasks π effectively. Built with ReactJS βοΈ and React-Bootstrap π¨, it features:
- Add Tasks π₯: Easily add new tasks β to your to-do list.
- Delete Tasks β: Click on a task to remove it from the list ποΈ.
- Class-Based Components π: Understand the basics of ReactJS 𧩠using class-based components π§©.
- ReactJS βοΈ: For building the user interface π₯οΈ and managing state π.
- React-Bootstrap π¨: For styling components β¨ and making the app look visually appealing ποΈ.
- Bootstrap π¨: For additional styling and responsive design π.
-
Clone π₯οΈ the repository π:
git clone https://github.com/nidhiupman568/ToDoList-Using-React.JS.git
-
Navigate πΆββοΈ to the project folder π:
cd todo-react
-
Install π₯ the necessary dependencies π οΈ:
npm install bootstrap npm install react-bootstrap
-
Start π the application:
npm start
-
Open π your web browser π and go to:
http://localhost:3000/
Hereβs a quick look π at how the To-Do App looks in action:
π The project folder structure looks like this:
todo-react/
β
βββ public/
β βββ index.html
β
βββ src/
β βββ components/
β β βββ TodoList.jsx
β β βββ TodoItem.jsx
β β βββ AddTodo.jsx
β βββ App.jsx
β βββ index.js
β βββ App.css
β
βββ node_modules/
βββ package.json
βββ README.md
The dependencies in the package.json
file look like this:
"dependencies": {
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"react": "^18.2.0",
"bootstrap": "^5.3.0",
"react-bootstrap": "^2.7.4",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
}
-
Set Up π οΈ the React project using npx π:
npx create-react-app todo-react
-
Navigate πΆββοΈ to the project folder π:
cd todo-react
-
Install π₯ Bootstrap and React-Bootstrap modules π οΈ:
npm install bootstrap npm install react-bootstrap
-
Add β¨ the necessary code to your files π:
- App.js π₯οΈ: Contains the main logic π― and renders the components π§©.
- App.css π¨: Includes all the styling π for the application.
Enjoy using the To-Do App π! Feel free to share π¨οΈ your feedback or contribute π€ to the project by making a pull request. Happy task management! ποΈπ
This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Note: this is a one-way operation. Once you eject
, you can't go back!
If you aren't satisfied with the build tool and configuration choices, you can eject
at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject
will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
You don't have to ever use eject
. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify