Because we are using Docker
this image will provide react
cli
commands like create-react-app
, create-react-native-app
,
react-native-cli
, etc without having to install node
, or these
packages in your development machine.
- You can clone this repo and build your own image
$ git clone https://github.com/przbadu/docker-react-cli.git
$ cd docker-react-cli
$ docker build . -t docker-react-cli
- Use your image to generate scaffold
For Linux/Mac
$ docker run -v ${PWD}:/app docker-react-cli create-react-app myapp
For Windows
$ docker run -v %cd%:/app docker-react-cli create-react-app myapp
NOTE: you can also use my docker image przbadu/docker-react-cli