docs/data/material/components/no-ssr/no-ssr.md
{{"component": "@mui/internal-core-docs/ComponentLinkHeader", "design": false}}
No-SSR is a utility component that prevents its children from being rendered on the server, deferring their rendering to the client instead. This can be useful in a variety of situations, including:
defer prop)The demo below illustrates how this component works:
{{"demo": "SimpleNoSsr.js"}}
import NoSsr from '@mui/material/NoSsr';
You can also use No-SSR to delay the rendering of specific components on the client-side—for example, to let the rest of the application load before an especially complex or data-heavy component.
The following demo shows how to use the defer prop to prioritize rendering the rest of the app outside of what is nested within No-SSR:
{{"demo": "FrameDeferring.js"}}
:::warning When using No-SSR in this way, React applies two commits instead of one. :::