An introductory project for trying out react by creating a simple to-do list application.
💛 Hosted on Github Pages: https://yuelchen.github.io/react-todo-list/
npm create-react-app react-todo-list
cd react-todo-list/
npm start
npm run build
- Under the project directory, install gh-pages module (first-time-only).
npm install gh-pages --save-dev
- Modify package.json by adding the GitHub pages URL as homepage (first-time-only).
{
"homepage": "https://username.github.io/repository-name/",
"name": "repository-name",
"version": "0.0.1",
...
}
- Under the scripts section, add the predeploy and deploy fields (first-time-only).
"scripts": {
"predeploy": "npm run build",
"deploy": "gh-pages -d build",
"start": "react-scripts start",
...
},
- Deploy the application.
npm run deploy
🚩 Disclaimer:
This project was bootstrapped with Create React App.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.