Course lesson

Conditionally Render with Legacy Root API or New Root API

React 18 supports the legacy root API (render) and a new root API (createRoot). Utilize this to conditionally render based on environment, user preference, or audience sample.

Duration
1 min
Access
Included
Transcript
Retained from source evidence

React 18 supports the legacy root API (render) and a new root API (createRoot). Utilize this to conditionally render based on environment, user preference, or audience sample.