Merge pull request #16 from unix/create-react-app

docs: add example project for create-react-app
This commit is contained in:
witt
2020-03-25 23:33:05 +08:00
committed by GitHub

View File

@@ -55,4 +55,15 @@ import { Button } from '@zeit-ui/react/components/button'
const MyComponent = () => <Button>Click Me</Button>
```
<Spacer y={3} />
### Create React App
The React project created by <Link target="_blank" rel="nofollow" href="https://github.com/facebook/create-react-app">create-react-app</Link> can
also easily use `@zeit-ui/react`. You don't need to make any changes, just install and use.
We have <Link target="_blank" rel="nofollow" href="https://github.com/zeit-ui/react-getting-started">a sample project related to `create-react-app` here</Link>.
export default ({ children }) => <Layout meta={meta}>{children}</Layout>