Skip to content

Instantly share code, notes, and snippets.

@bruceharris
Last active March 2, 2018 16:29
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 bruceharris/630a8958fe54a4d0875cd8d567c322c9 to your computer and use it in GitHub Desktop.
Save bruceharris/630a8958fe54a4d0875cd8d567c322c9 to your computer and use it in GitHub Desktop.
React Unit Testing Example 12
componentDidMount () {
this._delayTimer = setTimeout(
() => this.setState({ isPastDelay: true }), 100
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment