Structuring React: Containers and UI Components
June 23, 2023 - 8 min read
Separate your UI and non-UI concerns with Containers and UI components.
intermediate
react
typescript
The Power of Mocking in Unit Tests
June 16, 2023 - 7 min read
Strategies for mocking code so that it is straightforward to unit test.
intermediate
react
typescript
Reflecting on Code Sharing Between React and React Native
June 9, 2023 - 6 min read
Looking back at what was easy to share between Native and Web applications, and some simple strategies to make things easier
intermediate
react
react native
react query
typescript
Inversion of Conditional Blocks
June 8, 2023 - 2 min read
Invert conditional logic to reduce lines of code, reduce nesting, and improve readability
beginner
typescript
Using "useMemo" instead of "useEffect" for computations in React
June 7, 2023 - 2 min read
Avoiding the common pitfall of overusing effects in React, and embracing the "useMemo" hook instead.
beginner
react
typescript