Recreate a stopwatch in React. Your final product should function similarly to this deployed version of the component.
- Fork and clone this repo
- Once you have the app locally, install necessary dependencies with
$ npm install
- Start the development server locally with
$ npm start
, then visitlocalhost:3000
in the browser to view app
Take the existing markup rendered from the Stopwatch
component in src/Stopwatch.js
and change into a fully functioning component. This means that you only have to add functionality -- not markup or styling -- to the existing code! You will need to add a state and then alter the state using separate functions corresponding with their respective buttons.
You may want to look at time functions in order to increase the time on the stop watch: https://www.w3schools.com/js/js_timing.asp
All content is licensed under a CCBYNCSA 4.0 license. All software code is licensed under GNU GPLv3. For commercial use or alternative licensing, please contact legal@ga.co.