Sector file // reactjs
REACT.JSDECODED.
Hooks, rendering & state
Easy
8 questionscreateContext 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 is the purpose of the `key` prop when rendering lists in React?
Frontend · 891 views · lists, keys, performance
What are the advantages of using React over plain JavaScript?
Frontend · 808 views · benefits, declarative, components
What are fragments in React?
Frontend · 485 views · fragments, dom, jsx
How do you manage component-level state without `useState` or `useReducer`?
Frontend · 280 views · state management, class components, legacy
What is `create-react-app` and when would you use it?
Frontend · 121 views · tooling, setup, create-react-app
Medium
16 questionsWhat are React's design principles?
Frontend · 1.2k views · design principles, declarative, components
How does React handle security concerns like XSS?
Frontend · 1.1k views · security, xss, jsx
What are render props and how do they work?
Frontend · 1.0k views · patterns, reusability
Explain the concept of reconciliation in React.
Frontend · 1.0k views · virtual dom, reconciliation, diffing
Explain the concept of 'composition' in React components.
Frontend · 969 views · composition, components, design patterns
How do you handle asynchronous operations in React functional components?
Frontend · 930 views · async, useEffect, data fetching
What is the Context API in React and when would you use it?
Frontend · 913 views · state management, context api, props
How does React's Batching work?
Frontend · 905 views · state, performance, rendering
Hard
22 questionsWhat 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
What is `useDeferredValue` and how does it differ from debouncing?
Frontend · 913 views · react, concurrent, performance
How do Suspense data-fetching waterfalls happen, and how do you avoid them?
Frontend · 820 views · react, suspense, performance
What is server-side rendering (SSR) and when would you use it with React?
Frontend · 767 views · ssr, performance, seo
React Server Components vs SSR — what is the real difference?
Frontend · 710 views · react, rsc, ssr
Why does updating Context re-render all its consumers, and how do you fix it?
Frontend · 637 views · react, context, performance
Seen a React.js question that is not here? Add it and help the next candidate.
Share a question