More than 100 examples for React.
Install dependencies first:
- Open command line (Windows) or terminal (macOS) in the root folder
- Run
npm install
- Open de root folder in Visual Studio Code.
- Open a file from and example (
index.html
or a file in the same folder). - On Windows press
ctrl + shift + b
and on macOS presscmd + shift + b
to open the web server and the browser in that folder. - When done, close the web server: On Windows
ctrl + shift + p
and on macOscmd + shift + p
, in both cases followed by choosingTerminate Task
.
- Run
npm start
. Now the server will run and the browser will open. Server path will be written in the console. - In the browser, browse to the folder of the example you want to run and it will open automatically.
- Run
npx serve
. - In the browser, browse to the folder of the example you want to run and it will open automatically.
European Union Public Licence version 1.2
Copyright © 2014-2023 Rick Beerendonk