Created
August 30, 2018 07:42
-
-
Save kartikag01/dac01e23e13252e5ae1e3930725ec796 to your computer and use it in GitHub Desktop.
Before ComponentWillMount method
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
componentWillMount() { | |
this.setState({ loading: true }); | |
this.props.fetchData(); // action dispatch | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment