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/a6d6f993ab7ce44fe3a276fdb0ab6bde to your computer and use it in GitHub Desktop.
Save skv-headless/a6d6f993ab7ce44fe3a276fdb0ab6bde to your computer and use it in GitHub Desktop.
mport 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