Files
react-test/docs/data/material/components/no-ssr/SimpleNoSsr.tsx

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
452 B
TypeScript
Raw Normal View History

2025-12-12 14:26:25 +09:00
import NoSsr from '@mui/material/NoSsr';
import Box from '@mui/material/Box';
export default function SimpleNoSsr() {
return (
<div>
<Box sx={{ p: 2, bgcolor: 'primary.main', color: 'primary.contrastText' }}>
Server and Client
</Box>
<NoSsr>
<Box
sx={{ p: 2, bgcolor: 'secondary.main', color: 'secondary.contrastText' }}
>
Client only
</Box>
</NoSsr>
</div>
);
}