storybook/docs/snippets/react/simple-page-implementation.js.mdx
2020-08-18 17:30:56 +01:00

17 lines
400 B
Plaintext

```js
// YourPage.js
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>
);
}
```