Skip to content

Commit

Permalink
[docs] Warn about using withRoot HOC more than one time per page (mui…
Browse files Browse the repository at this point in the history
…#12692)

* [docs] Improve gatsby example giving more details on the HOC component
  • Loading branch information
oorestisime authored and marcelpanse committed Oct 2, 2018
1 parent 69d6459 commit f9f0dac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/gatsby/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,9 @@ npm run develop
## The idea behind the example

[Gatsby](https://github.com/gatsbyjs/gatsby) is a static site generator for React.

## `withRoot` usage

We are using the `withRoot` higher-order component to accommodate Material-UI's styling solution with Gatsby.

⚠️ You should only use a single `withRoot` for rendering one page.

0 comments on commit f9f0dac

Please sign in to comment.