Skip to the content.

References

JSX (JavaScript XML)

JSX code is handled by Babel ot TypeScript transpilers. ake note of the following about the JSX:

Using React with NPM (react.demo.proj.manual/)

mkdir -p react.demo.proj/{src,dist}
cd react.demo.proj/
npm init -y
npm i react react-dom webpack webpack-cli --save-dev
# Then create it by hand...
touch index.html webpack.config.js src/index.js 
npx webpack --mode production
npm run build

Create-react-app CLI (react.demo.proj.create-react-app/)

Using npx:

npx create-react-app react.demo.proj.create-react-app.try-1
cd react.demo.proj.create-react-app/

Using global installation:

sudo npm i create-react-app -g
create-react-app react.demo.proj.create-react-app.try-2
cd react.demo.proj.create-react-app.try-2/

Directory tree tree