Skip to content

Commit

Permalink
Update website/docs/guides/markdown-features/markdown-features-react.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena authored Oct 2, 2024
1 parent b9edccc commit 81e3d8e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +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.
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.
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.

Expand Down

0 comments on commit 81e3d8e

Please sign in to comment.