Created
July 16, 2016 21:12
-
-
Save jacobp100/e1856bd2b40e9e1f3f17e2bcbd0bc4a3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Cats extends Component { | |
static fetchData({ dispatch }) { | |
return dispatch(getCats()); | |
} | |
componentDidMount() { | |
Cats.fetchData(this.props); | |
} | |
render() { | |
... | |
} | |
} | |
export default connect()(Cats); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment