v4.3.0 - Server Components Support (experimental)
next-mdx-remote
now has experimental support for React Server Components! π Access the new API by importing from next-mdx-remote/rsc
, and head to the documentation for usage instructions and additional examples.
import { MDXRemote } from 'next-mdx-remote/rsc'
export default async function Page() {
const mdxSource = await getContent()
return (
<MDXRemote source={mdxSource} />
)
}
Big thanks to @timneutkens for his contribution!
What's Changed
- Pass components directly to compiled MDX function by @timneutkens in #330
- Add support for React Server Components by @timneutkens in #331
- chore: run tests in isolation by @BRKalow in #332
- chore: document new RSC API by @BRKalow in #333
New Contributors
- @timneutkens made their first contribution in #330
Full Changelog: v4.2.1...v4.3.0