Created
June 29, 2018 06:34
-
-
Save eyaleizenberg/90b266ffa30cd48b85cda903fab21d95 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
| interface IProps { | |
| superhero: string; | |
| } | |
| interface IState { | |
| health: number; | |
| } | |
| export class MyComponent extends React.PureComponent<IProps, IState> { | |
| render() { | |
| return <span>{`${this.props.superhero} health is: ${this.state.health}`}</span> | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment