Caveats about MDXProvider #1234
-
In the docs, there's mention of both pulling in components in individual MDX files with I think it could be useful to possibly look at updating the docs with something like this, but bringing up a discussion on the matter may be good to think about it in the various contexts of using MDX (Gatsby, Next, Vue, etc) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Welcome @lannonbr!
Can you expand why you think this is an anti-pattern?
This isn't always the case, components can be used on many/all pages.
Possibly, but that would be by choice, code splitting is still supported https://create-react-app.dev/docs/code-splitting |
Beta Was this translation helpful? Give feedback.
Welcome @lannonbr!
Thanks for taking time to think about patterns and anti-patterns, and doing a write up!
Can you expand why you think this is an anti-pattern?
This seems it may be a personal preference.
This isn't always the case, components can be used on many/all pages.
Possibly, but that would be by choice, code splitting is still supported https://create-react-app.dev/docs…