Skip to content

Instantly share code, notes, and snippets.

@skv-headless
Created November 26, 2019 14:02
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/8e85a7d0abfc60c1df95519c5d7429f7 to your computer and use it in GitHub Desktop.
Save skv-headless/8e85a7d0abfc60c1df95519c5d7429f7 to your computer and use it in GitHub Desktop.
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