Conditionally Render with Legacy Root API or New Root API

InstructorMichael Chan

Share this video with your friends

Send Tweet

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.