Skip to content

Commit

Permalink
docs: remove unnecessary MDXProvider in README (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
thinceller committed Nov 23, 2021
1 parent c1f78cd commit a636aec
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Expand Up @@ -139,6 +139,8 @@ If you want to make components available to any `<MDXRemote />` being rendered i
// pages/_app.jsx
import { MDXProvider } from '@mdx-js/react'

import Test from '../components/test'

const components = { Test }

export default function MyApp({ Component, pageProps }) {
Expand All @@ -152,12 +154,9 @@ export default function MyApp({ Component, pageProps }) {

```jsx
// pages/test.jsx
import { MDXProvider } from '@mdx-js/react'
import { serialize } from 'next-mdx-remote/serialize'
import { MDXRemote } from 'next-mdx-remote'

import Test from '../components/test'

export default function TestPage({ source }) {
return (
<div className="wrapper">
Expand Down

0 comments on commit a636aec

Please sign in to comment.