Skip to content

Should I use evaluate on the client to render statically served MDX? (v2) #1797

Answered by wooorm
nimobeeren asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Nimo!

As you mention evaluate, which is a (very nice, IMO) v2 feature, I’d recommend not using @next/mdx now, as it is on v1. If you have the chance and working on something new, I’d recommend starting with MDX 2.

The folks from next-mdx-remote are working on MDX v2 support. It’s not there yet.

I think what you’re looking for is pre-compiling MDX on the server and running it on the client. Tools like mdx-bundler can do that. It’s also something that React Server Components (RSC) does, which is used on the v2 website, but extremely experimental, though I’m mentioning it here because it will solve some of what you’re currently trying to solve.

Based on your last idea, I’d say: A differen…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@nimobeeren
Comment options

@nimobeeren
Comment options

@nimobeeren
Comment options

@wooorm
Comment options

Answer selected by nimobeeren
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants