Skip to content

Commit

Permalink
Fix Layout example component
Browse files Browse the repository at this point in the history
Closes GH-85.

Reviewed-by: Titus Wormer <[email protected]>
  • Loading branch information
Viktor Khotimchenko authored Sep 16, 2021
1 parent d1f60bd commit c74405f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -1256,7 +1256,9 @@ Layouts are components that wrap the whole content.
They can be defined from within MDX using a default export:

```js
export default function Layout({children}) => <main>{children}</main>
export default function Layout({ children }) {
return <main>{children}</main>;
}

All the things.
```
Expand Down

0 comments on commit c74405f

Please sign in to comment.