-
Start App in a docker container:
docker build -t remix-with-typescript-ssr-err . docker run -it -p 3000 remix-with-typescript-ssr-err
-
Open in browser: http://localhost:3000/
-
You should see an error like this in the dev console:
react-dom.development.js:86 Warning: Prop
className
did not match. Server: "MuiTypography-root MuiTypography-h4 MuiTypography-gutterBottom css-gtvj52" Client: "MuiTypography-root MuiTypography-h4 MuiTypography-gutterBottom css-1vw6mcs-MuiTypography-root"
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/remix-with-typescript
cd remix-with-typescript
Install it and run:
npm install
npm run dev
or:
The project uses Remix, which is a full stack web framework that lets you focus on the user interface and work back through web fundamentals to deliver a fast, slick, and resilient user experience.
It includes @mui/material
and its peer dependencies, including emotion
, the default style engine in MUI v5.
If you prefer, you can use styled-components instead.
You now have a working example project. You can head back to the documentation, continuing browsing it from the templates section.