Created
November 26, 2019 14:02
-
-
Save skv-headless/8e85a7d0abfc60c1df95519c5d7429f7 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
import TestNested, { IDoc } from './TestNested'; | |
interface IDocTest extends IDoc { | |
wtf: string, | |
} | |
interface IProps { | |
doc: IDocTest, | |
} | |
class Test extends React.Component<IProps> { | |
public render() { | |
return ( | |
<div> | |
<abbr>{this.props.doc.wtf.toUpperCase()}</abbr> | |
<hr/> | |
<TestNested doc={this.props.doc} /> | |
</div> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment