From 934225aedec26617dcd9e4c6d66a0fa64a4a1779 Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Mon, 8 Sep 2025 20:43:45 +0000 Subject: [PATCH 1/2] Update reusable-snippets.mdx --- reusable-snippets.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reusable-snippets.mdx b/reusable-snippets.mdx index fc17d584b..2c78bc929 100644 --- a/reusable-snippets.mdx +++ b/reusable-snippets.mdx @@ -13,6 +13,10 @@ should create a custom snippet to keep your content in sync. **Pre-condition**: You must create your snippet file in the `snippets` directory in order for the import to work. + + **Important limitation**: You cannot import a snippet into another snippet. Snippets can only be imported into regular MDX pages, not into other files within the `snippets` directory. + + Any page in the `snippets` directory will be treated as a snippet and will not be rendered into a standalone page. If you want to create a standalone page from the snippet, import the snippet into another file and call it as a From 36922800c2964b06a310f2e3c9fae3f0df392b38 Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Mon, 8 Sep 2025 20:44:13 +0000 Subject: [PATCH 2/2] Update react-components.mdx --- react-components.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/react-components.mdx b/react-components.mdx index 4145ef7ea..3bca2edca 100644 --- a/react-components.mdx +++ b/react-components.mdx @@ -94,6 +94,10 @@ The counter renders as an interactive React component. You can import components from your `snippets` folder. Unlike regular React, you cannot import components from every `MDX` file. Reusable components must be referenced from files within the `snippets` folder. Learn more about [reusable snippets](/reusable-snippets). + + **Important limitation**: You cannot import a snippet into another snippet. This means you cannot import React components from one snippet file into another snippet file. Snippets can only be imported into regular MDX pages. + + ### Example This example declares a `ColorGenerator` component that uses multiple React hooks and then uses it in an `MDX` file.