- Install the dependencies:
yarn install
- start rspack dev server:
yarn dev
Command | Description |
---|---|
yarn clean |
runs eslint and prettier |
yarn typecheck |
checks types |
yarn test |
runs tests |
yarn test:update |
runs tests and updates snapshots |
enter bad
into string fields or a number containing 99
in money fields to simulate an api error.
Business logic is consolidated into two places.
- This component keeps the whole form object in global state.
- It uses react context to pass getters and setters to individual fields.
- This keeps the state for each individual fields
- It keeps the form state: focus, validation results, etc.
- It handles updating the pretend external api and displaying saving indicators
- It updates global state via the context getters and setters.
Library | Description |
---|---|
Tachyons | lightweight css library |