Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

You are correct. You can’t use context providers in RSC.

Next.js allows users to define the file mdx-components.tsx. Users can export useMdxComponents() from that file. Next.js uses a Webpack alias matching the providerImportSource option to resolve it. You can implement the same pattern for any other bundler.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@n9
Comment options

@remcohaszing
Comment options

@n9
Comment options

Answer selected by n9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants