Skip to content

Instantly share code, notes, and snippets.

@milworm
Created February 18, 2016 02:30
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 milworm/32b4b2e17a1f636281b6 to your computer and use it in GitHub Desktop.
Save milworm/32b4b2e17a1f636281b6 to your computer and use it in GitHub Desktop.
react-progress-2-page
class Page1 {
componentDidMount() {
load();
}
load() {
Progress.show();
$.get("/endoint").then(this.onLoadSuccess);
}
onLoadSuccess(data) {
Progress.hide();
...
}
render() {
return <div class="page-1"></div>;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment