Skip to content

Files

Latest commit

 

History

History
20 lines (18 loc) · 581 Bytes

README.md

File metadata and controls

20 lines (18 loc) · 581 Bytes

============= 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