game that checks the reflex
Note: inspired and partial clone of https://play.google.com/store/apps/details?id=com.nixgames.reaction&hl=en&gl=US&pli=1
- measure color change
- recon the number
- init the repo x
- choose tech stack x
- do foundational design x
- create ui x
- create the functional requirements:
- color change x
- number recongnization x
- create result page x
- -('')/-
- add git hooks to lint and stage after bumping the version
- in color change, button should say start and then count
- add loader to indicate next step
- in color change, button should be clicked another time to trigger the result
- revisit the logic to end the game loop
- in num in order, first after refresh gets retriggered again
- place tailwind classes somewhere in the source text, when using dynamic utils: https://youtu.be/aSlK3GhRuXA?t=244
- states in react, only update in new render: https://react.dev/reference/react/useState#ive-updated-the-state-but-logging-gives-me-the-old-value
- setTimeout takes time in milliseconds.
- hooks can only be used inside the function body components
- in useEffect any state wouldbe captured and might be dirty when run.