From 0657e5806c2198e89d0463ad1548f8040c372090 Mon Sep 17 00:00:00 2001 From: jackrabbit128 Date: Wed, 2 Oct 2024 23:45:11 +0200 Subject: [PATCH] docs: clarify component naming for markdown import (#10545) * docs: clarify component naming for markdown import (#10542) * Apply review suggestion Co-authored-by: Joshua Chen * Update website/docs/guides/markdown-features/markdown-features-react.mdx --------- Co-authored-by: Joshua Chen --- .../docs/guides/markdown-features/markdown-features-react.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/guides/markdown-features/markdown-features-react.mdx b/website/docs/guides/markdown-features/markdown-features-react.mdx index 0dd4b6d32a27..0c63b0b3a966 100644 --- a/website/docs/guides/markdown-features/markdown-features-react.mdx +++ b/website/docs/guides/markdown-features/markdown-features-react.mdx @@ -300,7 +300,7 @@ This feature is experimental and might be subject to breaking API changes in the ## Importing Markdown {#importing-markdown} -You can use Markdown files as components and import them elsewhere, either in Markdown files or in React pages. +You can use Markdown files as components and import them elsewhere, either in Markdown files or in React pages. Each MDX file default-exports its page content as a React component. In the `import` statement, you can default-import this component with any name, but it must be capitalized following React's naming rules. By convention, using the **`_` filename prefix** will not create any doc page and means the Markdown file is a **"partial"**, to be imported by other files.