Dorokhov.codes

01. Installation React

Homepage: https://reactjs.org

To install an initial build we can use Create React App.

Installation

npx create-react-app .

Using Docker:

docker container run --rm \
    --interactive \
    --tty \
    --volume "$PWD:/usr/src/app" \
    --workdir /usr/src/app \
    --user $(id -u):$(id -g) \
    node:21 npx create-react-app .

Start a project

npm start
docker container run --rm \
    --interactive \
    --tty \
    --volume "$PWD:/usr/src/app" \
    --workdir /usr/src/app \
    --user $(id -u):$(id -g) \
    node:21 npm start