Skip to content

Vanier-Robotics/react-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-demo

A demo to learn the basics of React

Instructions

  • Fork this repository
  • Using GitHub Desktop (or any other Git tool), pull your forked repository locally
  • Open the local repository in the IDE of your choice, I recommend Visual Studio Code
  • Make sure you have Prettier installed on your IDE
  • Install Node.js (which should install npm as well) and insure the npm command works in the terminal
  • Run npm install, then npm start to run in development in your IDE
  • Follow the prompt given below. This exercise is quite autodidactic. Refer to the resources posted in the Discord channel. If you get stuck or need help, contact me.

Prompt

You are given a barebones React project, a mockup and a technical sheet.

Your job is to:

  1. Recreate the mockup as authentically as possible (should be identical)
    • Try to use flexbox in your CSS as much as possible
    • Avoid absolute positioning or use of margin for positioning
    • Use components! Create at least a component for the buttons
  2. Implement the stopwatch functionality (Advanced)

Mockup (open in new tab): image

Technical Sheet (open in new tab): image

Figma: https://www.figma.com/file/TsbW82b20aQxsK7fjIwXCG/React-Demo

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

About

A demo to learn the basics of React

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published