mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-10-31 17:11:13 +01:00
45 lines
1.4 KiB
Markdown
45 lines
1.4 KiB
Markdown
|
# Create React App example
|
||
|
|
||
|
## How to use
|
||
|
|
||
|
Download the example [or clone the repo](https://github.com/mui/material-ui):
|
||
|
|
||
|
<!-- #default-branch-switch -->
|
||
|
|
||
|
```sh
|
||
|
curl https://codeload.github.com/mui/material-ui/tar.gz/master | tar -xz --strip=2 material-ui-master/examples/create-react-app
|
||
|
cd create-react-app
|
||
|
```
|
||
|
|
||
|
Install it and run:
|
||
|
|
||
|
```sh
|
||
|
npm install
|
||
|
npm start
|
||
|
```
|
||
|
|
||
|
or:
|
||
|
|
||
|
<!-- #default-branch-switch -->
|
||
|
|
||
|
[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/mui/material-ui/tree/master/examples/create-react-app)
|
||
|
|
||
|
<!-- #default-branch-switch -->
|
||
|
|
||
|
[![Edit on StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/mui/material-ui/tree/master/examples/create-react-app)
|
||
|
|
||
|
## The idea behind the example
|
||
|
|
||
|
<!-- #default-branch-switch -->
|
||
|
|
||
|
This example demonstrates how you can use [Create React App](https://github.com/facebookincubator/create-react-app).
|
||
|
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](https://mui.com/guides/interoperability/#styled-components).
|
||
|
|
||
|
## What's next?
|
||
|
|
||
|
<!-- #default-branch-switch -->
|
||
|
|
||
|
You now have a working example project.
|
||
|
You can head back to the documentation, continuing browsing it from the [templates](https://mui.com/getting-started/templates/) section.
|