React 19 · React 19 features
Read a promise or context with use
use can read a promise during render, suspending until it resolves, and can be called conditionally.
const user = use(userPromise);
Official React 19 documentation
React 19 · React 19 features
use can read a promise during render, suspending until it resolves, and can be called conditionally.
const user = use(userPromise);
Official React 19 documentation
Was this page helpful?