storybook/docs/snippets/common/custom-docs-page.js-component.js.mdx
2022-11-17 16:33:22 +01:00

18 lines
386 B
Plaintext

```js
// CustomDocumentationComponent.js|jsx
import React from 'react';
export function CustomDocumentationComponent() {
return (
<div>
<h1>Replacing DocsPage with a custom component</h1>
<p>
The Docs page can be customized with your own custom content written as a React Component.
</p>
<p>Write your own code here👇</p>
</div>
);
}
```