---
sidebar_label: Client API
---
# Docusaurus Client API
Docusaurus provides some APIs on the clients that can be helpful to you when building your site.
## Components {#components}
### ` This component crashed because of error: {error.message}.
` {#head} This reusable React component will manage all of your changes to the document head. It takes plain HTML tags and outputs plain HTML tags and is beginner-friendly. It is a wrapper around [React Helmet](https://github.com/nfl/react-helmet). Usage Example: ```jsx import React from 'react'; // highlight-next-line import Head from '@docusaurus/Head'; const MySEO = () => ( // highlight-start
// highlight-end
);
```
Nested or latter components will override duplicate usages:
```jsx
``` ### `` {#link} This component enables linking to internal pages as well as a powerful performance feature called preloading. Preloading is used to prefetch resources so that the resources are fetched by the time the user navigates with this component. We use an `IntersectionObserver` to fetch a low-priority request when the `` is in the viewport and then use an `onMouseOver` event to trigger a high-priority request when it is likely that a user will navigate to the requested resource. The component is a wrapper around react-router’s `` component that adds useful enhancements specific to Docusaurus. All props are passed through to react-router’s `` component. External links also work, and automatically have these props: `target="_blank" rel="noopener noreferrer"`. ```jsx import React from 'react'; // highlight-next-line import Link from '@docusaurus/Link'; const Page = () => (
{/* highlight-next-line */} Check out my blog!
{/* highlight-next-line */} Follow me on Twitter!