Skip to content

Commit

Permalink
try a different wording
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Aug 28, 2018
1 parent c3d5ddc commit 7151254
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/gatsby/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ npm install
npm run develop
```

## Providing the theme
## The idea behind the example

To propagate the theme to a component tree use the `src/withRoot.js` HOC.
You should wrap **only** your top-level components with this HOC otherwise you risk re-rendering your React tree multiple times and styling issues during the build phase.
[Gatsby](https://github.com/gatsbyjs/gatsby) is a static site generator for React.

## `withRoot` usage

## The idea behind the example
We are using the `withRoot` higher-order component to accommodate the styling solution of Material-UI with Gatsby.

[Gatsby](https://github.com/gatsbyjs/gatsby) is a static site generator for React.
⚠️ You should be using a single `withRoot` for rendering one page.

0 comments on commit 7151254

Please sign in to comment.