Skip to content

Instantly share code, notes, and snippets.

@skv-headless
Created January 21, 2021 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skv-headless/26402d3c4a8726f07dbb330e815857db to your computer and use it in GitHub Desktop.
Save skv-headless/26402d3c4a8726f07dbb330e815857db to your computer and use it in GitHub Desktop.
import DocumentNested, { DocumentNested } from './DocumentNested';
interface Document extends DocumentNested {
name: string,
}
interface ParentComponentProps {
document: Document,
}
function ParentComponent(props: ParentComponentProps) {
return (
<>
<h1>{props.document.name}</h1>
<DocumentNested document={props.document} />
</>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment