SB
Size: a a a
SB
ᐺ
ᐺ
IS
IS
Б
class About extends React.Component {
state = {
title: 'Next.js example About'
};
render() {
return (
<Container maxWidth="sm">
<Box my={4}>
<Typography variant="h4" component="h1" gutterBottom>
{this.state.title}
</Typography>
<Link href="/">Go to the main page</Link>
<ProTip />
<Copyright />
</Box>
</Container>
);
{
}
}
}
export default () => {
return <About />;
};
I
Б
Б
const html = ReactDOMServer.renderToString(
sheets.collect(
<ThemeProvider theme={theme}>
<App />
</ThemeProvider>,
),
);
const css = sheets.toString();
res.send(renderFullPage(html, css));
▲
const html = ReactDOMServer.renderToString(
sheets.collect(
<ThemeProvider theme={theme}>
<App />
</ThemeProvider>,
),
);
const css = sheets.toString();
res.send(renderFullPage(html, css));
I
NB
I
NB
NB
I
NB
NB
I
NB