Created
February 18, 2016 02:30
-
-
Save milworm/32b4b2e17a1f636281b6 to your computer and use it in GitHub Desktop.
react-progress-2-page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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