storybook/docs/snippets/react/simple-page-implementation.js.mdx
2020-10-07 12:23:34 +08: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>
);
}
```