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 ยท 971 views ยท hooks, useeffect, side effects
What is the purpose of the cleanup function in useEffect?
Phone Screen ยท 51 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 ยท 930 views ยท async, useEffect, data fetching
How do you fetch data in React?
Frontend ยท 814 views ยท data fetching, useEffect, api
How do you interact with external APIs in React?
Frontend ยท 553 views ยท api, data fetching, useeffect
Explain the purpose of `useEffect`.
Frontend ยท 364 views ยท useEffect, side effects, lifecycle
Async Server Components & waterfall prevention โ fetching without blocking
Frontend ยท 332 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 ยท 994 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 ยท 659 views ยท react, hooks, internals
When would you use `useLayoutEffect` instead of `useEffect`?
Frontend ยท 514 views ยท hooks, useLayoutEffect, useEffect
What can and can't an Error Boundary catch?
Frontend ยท 149 views ยท react, error-handling, lifecycle
Seen a React.js question that is not here? Add it and help the next candidate.
Share a question