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
React Golf Scorecard application updated to show Greens in Regulation (GIR). For this we needed figure out how to trigger an on change event when the input value for GIR is updated dynamically when strokes and putts are entered. It is recommended that you read Part 1 which contains the information on how to install and build this application locally.
You can view a demo of the app here