Skip to content

Commit

Permalink
Update example usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Drewbi committed Jun 15, 2020
1 parent bca31d0 commit 658c2db
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions website/docs/theme-classic.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,13 @@ const Example = () => {
The component calling `useThemeContext` must be a child of the `Layout` component.

```jsx
<Layout>
<Example />
</Layout>
function ExamplePage() {
return (
<Layout>
<Example />
</Layout>
);
}
```

:::
Expand Down

0 comments on commit 658c2db

Please sign in to comment.