Sector file // reactjs
REACT.JSDECODED.
Hooks, rendering & state
Easy
25 questionsWhat are React synthetic events?
Phone Screen ยท 1.2k views ยท events, architecture
What are React Hooks? Name a few common ones.
Frontend ยท 1.1k views ยท hooks, functional components, state
What is `PropTypes` and when would you use it?
Frontend ยท 1.1k views ยท prop-types, type checking, validation
createContext vs use(Context) โ new context consumption in React 19
Frontend ยท 1.1k views ยท context, react-19
How do you handle side effects in functional components?
Frontend ยท 971 views ยท hooks, useeffect, side effects
What is the role of `react-dom`?
Frontend ยท 956 views ยท react-dom, dom, rendering
What are React Developer Tools and how do you use them?
Frontend ยท 893 views ยท debugging, tools, developer experience
What is the purpose of the `key` prop when rendering lists in React?
Frontend ยท 891 views ยท lists, keys, performance
Medium
38 questionsWhat are React's design principles?
Frontend ยท 1.2k views ยท design principles, declarative, components
What is the difference between `useState` and `useReducer`?
Frontend ยท 1.2k views ยท hooks, state management, useState
What is the purpose of the `deps` array in `useEffect` and `useCallback`?
Frontend ยท 1.1k views ยท hooks, usestate, usecallback
Describe the `useRef` hook and its typical use cases.
Frontend ยท 1.1k views ยท hooks, useref, dom manipulation
How does React handle security concerns like XSS?
Frontend ยท 1.1k views ยท security, xss, jsx
The `use()` API with Suspense โ how do you unwrap promises in render?
Frontend ยท 1.1k views ยท use-api, suspense
How would you structure a large React application?
Low-Level Design ยท 1.1k views ยท project structure, architecture, scalability
What are render props and how do they work?
Frontend ยท 1.0k views ยท patterns, reusability
Hard
47 questionsWhat causes stale closures in React hooks, and how do you fix them correctly?
Frontend ยท 1.2k views ยท react, hooks, closures
What are Actions in React 19, and how do they change form handling?
Frontend ยท 1.1k views ยท react, react-19, actions
What is `useFormStatus` in React 19, and why does it exist?
Frontend ยท 1.1k views ยท react, react-19, hooks
What are Effect Events (`useEffectEvent`) and what problem do they solve?
Frontend ยท 994 views ยท react, hooks, effects
What does the `useActionState` hook do in React 19?
Frontend ยท 947 views ยท react, react-19, hooks
What problem does `useSyncExternalStore` solve?
Frontend ยท 938 views ยท react, concurrent, state-management
How do you optimize React component rendering?
Frontend ยท 929 views ยท performance, optimization, memoization
How do you avoid re-renders with composition instead of memoization?
Frontend ยท 921 views ยท react, performance, composition
Seen a React.js question that is not here? Add it and help the next candidate.
Share a question