Open ngfelixl opened 2 years ago
mdx-bundler
Problem description:
In the README.md there is the following code snippet for ssr:
function MDXPage({code}: {code: string}) { const Component = React.useMemo( () => getMDXComponent(result.code, {myLeftPad: leftPad}), [result.code, leftPad], ) // [...] }
Suggested solution:
It should either be:
function MDXPage({code}: {code: string}) { const Component = React.useMemo( () => getMDXComponent(code, {myLeftPad: leftPad}), [code, leftPad], ) // [...] }
Or result: {code: string} instead of {code}: {code: string}.
result: {code: string}
{code}: {code: string}
Thanks for making awesome stuff like remix, open-source kentcdodds.com and all the other work.
mdx-bundler
version: 8.0.1Problem description:
In the README.md there is the following code snippet for ssr:
Suggested solution:
It should either be:
Or
result: {code: string}
instead of{code}: {code: string}
.Thanks for making awesome stuff like remix, open-source kentcdodds.com and all the other work.