diff --git a/customize/react-components.mdx b/customize/react-components.mdx index 0fc0a0322..fcdcb8251 100644 --- a/customize/react-components.mdx +++ b/customize/react-components.mdx @@ -94,6 +94,10 @@ The counter renders as an interactive React component. To import React components in your MDX files, the component files must be located in the `/snippets/` folder. Learn more about [reusable snippets](/create/reusable-snippets). + +Nested imports are not supported. If a React component references other components, you must import all components directly into the parent MDX file rather than importing components within component files. + + ### Example This example declares a `ColorGenerator` component that uses multiple React hooks and then uses it in an MDX file.