Created
January 21, 2021 16:16
-
-
Save skv-headless/a6d6f993ab7ce44fe3a276fdb0ab6bde to your computer and use it in GitHub Desktop.
This file contains 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
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