Example project for typing tester in React
This project shows an example of typing test implementation in React.
- React function components
- React hooks
- Functional store state calculation
Example of a running project can be seen in github pages deployment
The manager of the game. Uses hooks for store state of the game.
Store hook for managing a typing game.
Utility hook to capture and deal with typing events.
State representation for the game.
Uses functional pattern of:
- Simple structural representation of the pieces state. Board/Word/Letter.
- Immutable functions per module for mutating the state for easier reasoning about state changes.
- Smart immutable - tree include changed branch and unchanged branches - So change detection will stop at unchanged branches.
pnpm install
pnpm dev
There is an automatic deployment that is done through github workflow. Each push to main
will activate the workflow and try to deploy to Github pages.