storybook/docs/snippets/react/simple-page-implementation.js.mdx
2021-11-09 01:41:54 +00:00

18 lines
424 B
Plaintext

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