Skip to content

Instantly share code, notes, and snippets.

@eyaleizenberg
Created June 29, 2018 06:34
Show Gist options
  • Select an option

  • Save eyaleizenberg/90b266ffa30cd48b85cda903fab21d95 to your computer and use it in GitHub Desktop.

Select an option

Save eyaleizenberg/90b266ffa30cd48b85cda903fab21d95 to your computer and use it in GitHub Desktop.
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