Testing and Debugging Flashcards
6 cards from real React practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 6 Testing and Debugging flashcards as text
What is the purpose of the useDebugValue hook?
Answer: Displaying a label in React DevTools for custom hooks, making debugging easier
useDebugValue adds a label visible in React DevTools next to custom hooks, helping developers understand what value a custom hook is currently holding.
What is hydration in React?
Answer: The process of attaching React event listeners to server-rendered HTML, making it interactive on the client
Hydration takes the static HTML from server-side rendering and attaches React's event handlers and state management, making the page interactive.
What is Suspense in React?
Answer: A component that displays fallback content while waiting for lazy-loaded components or async data to resolve
Suspense wraps components that may need time to load, displaying fallback content (like a loading spinner) until the wrapped content is ready.
What is the Profiler in React?
Answer: A tool that measures how often a React application renders and the cost of rendering, helping identify performance bottlenecks
The Profiler API measures rendering performance, showing which components rendered, how long they took, and what caused them to render.
What is concurrent rendering in React?
Answer: A rendering strategy that allows React to prepare multiple versions of the UI simultaneously without blocking the main thread
Concurrent rendering lets React work on multiple tasks, pause and resume work, and prioritize user interactions over less urgent updates.
What are React Server Components?
Answer: Components that render exclusively on the server, reducing client-side JavaScript and enabling direct backend data access
Server Components render on the server and send only the rendered output to the client, eliminating the need to send component code to the browser.
Written and edited by Nathan Beja, founder of Practice Test Geeks, with AI assistance. We have not yet matched this exam's facts to an official source, so confirm fees, dates and rules with the exam body. Editorial policy