storybook/docs/snippets/common/custom-docs-page.js-component.js.mdx
2021-06-11 21:34:09 +01:00

19 lines
439 B
Plaintext

```js
// CustomDocumentationComponent.js | CustomDocumentationComponent.jsx
import React from 'react';
export default 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>
);
}
```