Download the example or clone the repo:
curl https://codeload.github.com/mui-org/material-ui/tar.gz/master | tar -xz --strip=2 material-ui-master/examples/nextjs-with-typescript
cd nextjs-with-typescript
Install it and run:
npm install
npm run dev
or:
Next.js is a framework for server-rendered React apps.
If you get this warning, please make sure that you configure getInitialProps
in pages/_document.tsx
correctly. Check the code in this example for more details.