Skip to content

Commit

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

* [docs] Improve gatsby example giving more details on the HOC component
  • Loading branch information
oorestisime authored and mbrookes committed Aug 28, 2018
1 parent d2dfe83 commit 9fb136f
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 9fb136f

Please sign in to comment.