No SSR
The No-SSR component defers the rendering of children components from the server to the client.
NoSsr API
Import
import NoSsr from '@mui/base/NoSsr';
// or
import { NoSsr } from '@mui/base';Props
| Name | Type | Default | Description |
|---|---|---|---|
| children | node | You can wrap a node. | |
| defer | bool | false | If true, the component will not only prevent server-side rendering. It will also defer the rendering of the children into a different screen frame. |
| fallback | node | null | The fallback content to display. |
The component cannot hold a ref.