InterviewTreedInterviewTreed

The question library

Technical interview questions and answers

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

Showing 3121–3132 of 3610 questions

React & TypeScriptBeginner1 min read

What is a custom hook?

A custom hook is a function starting with use that composes hooks to share stateful logic between components.

React & TypeScriptBeginner1 min read

How does React update the UI?

React schedules rendering after relevant updates, reconciles the new element tree, and commits necessary changes to the host environment.

React & TypeScriptIntermediate1 min read

What is useMemo?

useMemo caches a calculated value between renders until dependencies change, potentially avoiding expensive recalculation.

React & TypeScriptIntermediate1 min read

What does React.memo do?

React.memo can skip rendering a component when its props are unchanged according to its comparison behavior.