Skip to main content
Context7 MCP

React components

Define a small custom component in MDX
1 min read

Define the component with an ESM export, then use it in the page.

Usage#

Keep custom components small. Use a shared MDX or JSX snippet when several pages need the same component.

Example#

The API is ready.