Node.js will need to be installed. This include the
Pro Tips: Use nvm for Node.js installation. If running Windows, use WSL2 with Windows Terminal.
Here are a couple of options for creating a React application.
1. Create React App
The create-react-app CLI released by facebook in July 2016 is an easy way to spin up a zero configuration React app.
create-react-app CLI globally using
npm i -g create-react-app
create-react-app CLI to create a new React App, e.g.,
npx create-react-app myreactapp
2. Minimal React Boilerplate
Using Git, clone the minimal-react-webpack-babel-setup into your new app directory. e.g.,
git clone https://github.com/jimfrenette/minimal-react-webpack-babel-setup.git myreactapp
In the new application directory, use the
npm CLI to install
node_modules, then run the start script.
cd myreactapp npm i npm start