Sector file // reactjs
REACT.JSDECODED.
Hooks, rendering & state
Easy
6 questionsWhat is `PropTypes` and when would you use it?
Frontend ยท 1.1k views ยท prop-types, type checking, validation
What is the role of `react-dom`?
Frontend ยท 959 views ยท react-dom, dom, rendering
How do you pass data between components in React?
Phone Screen ยท 804 views ยท props, data flow, component communication
What is JSX?
Phone Screen ยท 706 views ยท jsx, syntax, transpilation
What is the purpose of `React.StrictMode`?
Frontend ยท 321 views ยท development, debugging, best practices
What are React Components?
Phone Screen ยท 140 views ยท components, reusability, ui
Medium
17 questionsWhat are React's design principles?
Frontend ยท 1.2k views ยท design principles, declarative, components
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
What is the Context API in React and when would you use it?
Frontend ยท 915 views ยท state management, context api, props
RSC vs Client Components โ when do you add 'use client' in Next.js 15?
Frontend ยท 855 views ยท rsc, nextjs, server-components
What are React custom hooks and when should you use them?
Frontend ยท 823 views ยท hooks, reusability
How do you fetch data in React?
Frontend ยท 817 views ยท data fetching, useEffect, api
Hard
12 questionsWhat causes stale closures in React hooks, and how do you fix them correctly?
Frontend ยท 1.2k views ยท react, hooks, closures
What problem does `useSyncExternalStore` solve?
Frontend ยท 942 views ยท react, concurrent, state-management
How does streaming SSR with selective hydration work?
Frontend ยท 898 views ยท react, ssr, suspense
What is server-side rendering (SSR) and when would you use it with React?
Frontend ยท 769 views ยท ssr, performance, seo
How does `useOptimistic` enable optimistic UI in React 19?
Frontend ยท 707 views ยท react, react-19, hooks
The Activity API โ hiding UI without unmounting in React 19
Frontend ยท 570 views ยท activity, react-19
What is "tearing" in concurrent React?
Frontend ยท 443 views ยท react, concurrent, state-management
What are the resource preloading APIs in React 19 (`preload`, `preinit`, etc.)?
Frontend ยท 338 views ยท react, react-19, performance
Seen a React.js question that is not here? Add it and help the next candidate.
Share a question