Skip to content

Instantly share code, notes, and snippets.

@dance2die
Last active September 15, 2018 19:19
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 dance2die/75fcb22f74c265cf545917a9441f0242 to your computer and use it in GitHub Desktop.
Save dance2die/75fcb22f74c265cf545917a9441f0242 to your computer and use it in GitHub Desktop.
class Greeting extends Component {
intervalID = 0;
componentDidMount() {
this.intervalID = setInterval(this.hello, 1000);
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment