Skip to content

Latest commit

 

History

History

React

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

============= React example

This example shows rendering of the flag of France with React. The example handles mouse clicks maintaining separate counts for the number of clicks on each vertical section of the flag, and a counter for overall clicks.

  1. Install nodejs and npm
  2. Use create-react-app to create application template
    • npx create-react-app my-app
  3. Save files
    • App.js into my-app/src/App.js
    • App.css into my-app/src/App.css
  4. Start the app
    • cd my-app
    • npm start
  5. The application should be accessible on: http://localhost:5009