Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Material UI - Server-side-rendered example
How to use
Download the example or clone the repo:
curl https://codeload.github.com/mui/material-ui/tar.gz/master | tar -xz --strip=2 material-ui-master/examples/material-ui-express-ssr
cd material-ui-express-ssr
Install it and run:
npm install
npm run start
or:
The idea behind the example
This is the reference implementation of the Server Rendering tutorial.
The example project includes @mui/material and its peer dependencies, including Emotion, the default style engine in Material UI.
If you prefer, you can use styled-components instead.
What's next?
You now have a working example project. You can head back to the documentation and continue by browsing the templates section.