Download the example or clone the repo:
curl https://codeload.github.com/mui-org/material-ui/tar.gz/next | tar -xz --strip=2 material-ui-next/examples/gatsby
cd gatsby
Install it and run:
npm install
npm run develop
Gatsby is a static site generator for React.
We are using the withRoot
higher-order component to accommodate Material-UI's styling solution with Gatsby.
withRoot
for rendering one page.