Skip to content

Conversation

@jakespodek
Copy link

This is my completed stopwatch app for the intern assessment.

This was my first time using TypeScript and my first time writing tests but I am quite happy with my app's functionality, code quality, and documentation (and UI design).

It would be great to know what my app's greatest areas for improvement are, especially with regards to testing.

added some basic structural elements
added basic functions to the start and reset buttons and passed them as props to the button components
added some basic temporary styling
added a stop button and changed the start/stop button to just a start button
Switched to using useRef instead of useState for managing the time
Added formatTime function to properly format the data displayed on the stopwatch and changed the StopWatch.tsx time prop's type to string
changed some double-quotes to single-quotes
improved formatting/indentation
moved formatTime() into StopWatch.tsx
Revised file structure
Added some semicolons
partial lap time functionality
added the three stopwatch states and logic for disabling buttons depending on the stopwatch state
Moved lap times into separate component
Added comments
set up testing file and passed first necessary test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant