Created
January 21, 2021 16:16
-
-
Save skv-headless/26402d3c4a8726f07dbb330e815857db to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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