Skip to content

Instantly share code, notes, and snippets.

View HichemBenChaaben's full-sized avatar
🚀

Hichem ben chaabene HichemBenChaaben

🚀
  • Amsterdam
  • 12:29 (UTC -12:00)
View GitHub Profile
@jacob-beltran
jacob-beltran / requestAnimationFrame.js
Last active April 17, 2020 04:05
React Performance: requestAnimationFrame Example
// How to ensure that our animation loop ends on component unount
componentDidMount() {
this.startLoop();
}
componentWillUnmount() {
this.stopLoop();
}