Interview Q&A / React

INTERVIEW Q&A · 58 QUESTIONS

React interview questions

Rendering, state, hooks, keys and effects, explained with small examples.

  1. What does useTransition do, and when would you use it?

    useTransition lets you mark a state update as non-urgent. React keeps the UI responsive for urgent updates like typing and can interrupt the slow update. It also gives an isPending flag to show a loading hint.

    AdvancedQuick answer1 min read