Skip to content

rickbeerendonk/react-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Examples

More than 100 examples for React.

How to run?

Always

Install dependencies first:

  1. Open command line (Windows) or terminal (macOS) in the root folder
  2. Run npm install (maybe npm install --legacy-peer-deps)

Visual Studio Code

  1. Open de root folder in Visual Studio Code.
  2. Open a file from and example (index.html or a file in the same folder).
  3. On Windows press ctrl + shift + b and on macOS press cmd + shift + b to open the web server and the browser in that folder.
  4. When done, close the web server: On Windows ctrl + shift + p and on macOs cmd + shift + p, in both cases followed by choosing Terminate Task.

Command Line / Terminal

  1. Run npm start. Now the server will run and the browser will open. Server path will be written in the console.
  2. In the browser, browse to the folder of the example you want to run and it will open automatically.

Alternative

  1. Run npx serve.
  2. In the browser, browse to the folder of the example you want to run and it will open automatically.

Licence

European Union Public Licence version 1.2

Copyright

Copyright © 2014-2023 Rick Beerendonk