Skip to content

Latest commit

 

History

History

material-ui-preact

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Material UI - Preact 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-preact
cd material-ui-preact

Install it and run:

npm install
npm run start

The idea behind the example

The project uses Material UI with Preact, which is a lightweight (3 kB) alternative to React with the same modern API.

This example uses CRA with react-app-rewired for adding Webpack aliases for Preact.

It includes @mui/material and its peer dependencies, including Emotion, the default style engine in Material UI v6.

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.