storybook/docs/snippets/react/simple-page-implementation.js.mdx
2021-06-28 23:00:33 +01:00

18 lines
416 B
Plaintext

```js
// YourPage.js | YourPage.jsx
import React from 'react';
import PageLayout from './PageLayout';
import DocumentHeader from './DocumentHeader';
import DocumentList from './DocumentList';
function DocumentScreen({ user, document, subdocuments }) {
return (
<PageLayout user={user}>
<DocumentHeader document={document} />
<DocumentList documents={subdocuments} />
</PageLayout>
);
}
```