Skip to content

Commit a8e7e46

Browse files
committed
Fix gatsby ssr
1 parent 3082c51 commit a8e7e46

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

examples/gatsby/gatsby-ssr.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import "@code-hike/mdx/styles.css"
2+
import React from "react"
3+
import { Layout } from "./src/components/layout"
4+
5+
export const wrapPageElement = ({ element, props }) => {
6+
return <Layout {...props}>{element}</Layout>
7+
}

0 commit comments

Comments
 (0)