A simple development container for react, to run in vscode
- Clone the repository
- Make sure the
Dev Containers
extention is installed in vscode - Open the project folder in vscode
- Open command plate (ctrl+shift+p) and choose
Dev Containers: Reopen Folder in container
Create a project
npx create-react-app my-app
Use .
instead of app-name
to place the app files in the current directory
Run project
npm start
The devcontainer.env adds an environment variable for the hot-reload to work on windows environment (wsl2) as well