Custom React Components
- Create a new React component in
src/components/
folder. - Import the component on top of the page where you want to use it.
import <ComponentName> from '@site/src/components/<ComponentName>';
- Use the component in the page.
<ComponentName />
Check out the official documentation for more information and more advanced use cases like global components.