- Published on
- 2 min read
Open, navigate and close a modal without losing the keyboard user's place.
Open, navigate and close a modal without losing the keyboard user's place.
Use a discriminated union to make loading, success and failure explicit and exhaustive.
Place each piece of state near the components that need to coordinate, and derive what you can.