Bare minimum setup for a simple react app. Should save you a lot of time. You are very welcome!!
For a detailed description of how the startpack works head over to the link below:
https://scotch.io/tutorials/setup-a-react-environment-using-webpack-and-babel
- Install node on your machine
- Install yarn (yarn is used in place of npm)
- Fork this repo.
- Navigate to your fork of the react-startpack.
- Under your repository name, click Clone or download.
- In the Clone with HTTPs section, copy the clone URL for the repository.
- Open Terminal.
- Type git clone, and then paste the URL you copied. It will look like this, with your GitHub username instead of YOUR-USERNAME:
git clone https://github.com/YOUR-USERNAME/react-startpack
- Press Enter. Your local clone will be created.
git clone https://github.com/YOUR-USERNAME/react-startpack
Cloning into `react-startpack`...
remote: Counting objects: 10, done.
remote: Compressing objects: 100% (8/8), done.
remove: Total 10 (delta 1), reused 10 (delta 1)
Unpacking objects: 100% (10/10), done.
- Now, you have a local copy of your fork of the react-startpack repository!
- cd into the project root
- In the project root, run
yarn install
to install dependencies - To start app
yarn start