Run sample React application in Debian

If you're learning React or creating a new single-page app, use Create React App.

First install NodeJS:

sudo apt update
sudo apt install nodejs npm
node -v
Change the directory and generate the project:
cd Desktop/
npx create-react-app frontend
cd frontend/
Run tests:
npm run test
Run a production build:
npm run build
Start the app in the browser - it will open it automatically:
npm run start
To start the production build: install serve and serve the build directory:
sudo npm install -g serve
serve -s build