No articles yet in this category.
No articles yet in this category.
No articles yet in this category.
Hooks are just functions, but testing them well requires care. This final article covers testing hooks through components (the preferred way), using renderHook for isolated custom hook tests, and common async patterns.
React 18 shipped three new hooks that tackle different problems: useId for stable unique IDs, useTransition for non-blocking UI updates, and useDeferredValue for deprioritising expensive renders.
useContext lets any component read shared state without threading props through every layer. This article covers createContext, Provider setup, and the patterns that keep context from becoming a performance trap.
No articles yet in this category.
No articles yet in this category.
No articles yet in this category.
No articles yet in this category.
No articles yet in this category.
No articles yet in this category.
No articles yet in this category.
No articles yet in this category.
No articles yet in this category.
No articles yet in this category.
No articles yet in this category.