Skip to main content

Custom React Components

  1. Create a new React component in src/components/ folder.
  2. Import the component on top of the page where you want to use it.
    import <ComponentName> from '@site/src/components/<ComponentName>';
  3. Use the component in the page.
    <ComponentName />

Check out the official documentation for more information and more advanced use cases like global components.