Skip to content

Instantly share code, notes, and snippets.

@mahdiyazdani
Created September 25, 2018 21:54
Show Gist options
  • Save mahdiyazdani/8ec6ecf18137b5709750b5cf8ad97243 to your computer and use it in GitHub Desktop.
Save mahdiyazdani/8ec6ecf18137b5709750b5cf8ad97243 to your computer and use it in GitHub Desktop.
componentDidUpdate
import React from 'react';
export class Example extends React.component {
componentDidUpdate(prevProps, prevState) {
alert('Component is done rendering!');
}
render() {
return <h1>Hello world</h1>;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment