Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardReactuse() in renderSingle-choice MCQ

When `use(promise)` suspends, the component function unwinds. What does React do on the subsequent re-render once the promise settles, and what is required of the promise reference for this to terminate?

function Profile({ userPromise }) { const user = use(userPromise); return <h1>{user.name}</h1>; }