Skip to content

Commit

Permalink
Add clarifying comment to components object
Browse files Browse the repository at this point in the history
  • Loading branch information
daneden committed Aug 26, 2020
1 parent ed2892a commit 4679aa0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/with-mdx-remote/pages/posts/[slug].jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ import path from 'path'
import CustomLink from '../../components/CustomLink'
import { postFilePaths, POSTS_PATH } from '../../utils/mdxUtils'

// Custom components/renderers to pass to MDX
// Custom components/renderers to pass to MDX.
// Since the MDX files aren't loaded by webpack, they have no knowledge of how
// to handle import statements. Instead, you must include components in scope
// here.
const components = {
a: CustomLink,
}
Expand Down

0 comments on commit 4679aa0

Please sign in to comment.