No articles yet in this category.
No articles yet in this category.
No articles yet in this category.
Hooks come with two hard rules enforced by the ESLint plugin. This article explains why those rules exist, the most common anti-patterns developers fall into, and how to restructure code when you feel the urge to break them.
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.
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.