InterviewTreedInterviewTreed

The question library

Technical interview questions and answers

Explore practical questions, clear explanations, and code examples across developer technologies.

Showing 3145–3156 of 3610 questions

React & TypeScriptIntermediate1 min read

What is an error boundary?

An error boundary catches certain errors during descendant rendering and can show fallback UI, but does not catch every async or event-handler erro...

React & TypeScriptIntermediate1 min read

What is code splitting?

Code splitting divides app code into smaller bundles that can load when needed, often through dynamic imports and lazy loading.

React & TypeScriptIntermediate1 min read

Why might an effect run too often?

Dependencies may change every render, for example newly created objects or functions, or dependencies may not match the intended synchronization.

React & TypeScriptIntermediate1 min read

useLayoutEffect versus useEffect?

useLayoutEffect runs after DOM mutations but before repaint, useful for layout measurement without flicker; useEffect is generally preferred for ot...