Sector file // reactjs
REACT.JSDECODED.
Hooks, rendering & state
Easy
3 questionsWhat are React Hooks? Name a few common ones.
Frontend ยท 1.1k views ยท hooks, functional components, state
How do you handle side effects in functional components?
Frontend ยท 975 views ยท hooks, useeffect, side effects
What is the purpose of the cleanup function in useEffect?
Phone Screen ยท 55 views ยท hooks, lifecycle
Medium
9 questionsWhat are React's design principles?
Frontend ยท 1.2k views ยท design principles, declarative, components
What is the purpose of the `deps` array in `useEffect` and `useCallback`?
Frontend ยท 1.1k views ยท hooks, usestate, usecallback
Describe the React component lifecycle.
Frontend ยท 1.0k views ยท lifecycle, mounting, updating
How do you handle asynchronous operations in React functional components?
Frontend ยท 933 views ยท async, useEffect, data fetching
How do you fetch data in React?
Frontend ยท 817 views ยท data fetching, useEffect, api
How do you interact with external APIs in React?
Frontend ยท 555 views ยท api, data fetching, useeffect
Explain the purpose of `useEffect`.
Frontend ยท 367 views ยท useEffect, side effects, lifecycle
Async Server Components & waterfall prevention โ fetching without blocking
Frontend ยท 334 views ยท rsc, data-fetching
Hard
6 questionsWhat causes stale closures in React hooks, and how do you fix them correctly?
Frontend ยท 1.2k views ยท react, hooks, closures
What are Effect Events (`useEffectEvent`) and what problem do they solve?
Frontend ยท 998 views ยท react, hooks, effects
useEffectEvent โ separating reactive and non-reactive logic in Effects
Frontend ยท 680 views ยท hooks, effects
What underlying mechanism makes the Rules of Hooks mandatory?
Frontend ยท 662 views ยท react, hooks, internals
When would you use `useLayoutEffect` instead of `useEffect`?
Frontend ยท 516 views ยท hooks, useLayoutEffect, useEffect
What can and can't an Error Boundary catch?
Frontend ยท 153 views ยท react, error-handling, lifecycle
Seen a React.js question that is not here? Add it and help the next candidate.
Share a question