- How to Trigger React Error Boundary (Dev and Test)· 4 min read
Trigger a React error boundary reliably in browser and Jest tests. Covers render-time crashes, event-handler caveats, plus practical test patterns fast.
- Eslint Enforce Named Function In Useeffect· 2 min read
Enforce named functions inside useEffect for better debugging and stack traces.
- Check If Clicked Element Is Descendant Close On Click Outside· 3 min read
Detect click outside a modal or dropdown using contains() method.
- React Useref Property Not Exist On Type Never· 2 min read
Fix the confusing TypeScript error when using useRef with proper type arguments.