Last active
October 4, 2016 13:41
-
-
Save yarnball/166d6a59a3daad1991ddfb91fc7a122e to your computer and use it in GitHub Desktop.
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
export default Connect(mapStateToProps, mapDispatchToProps)(React.createClass({ | |
componentWillMount () { | |
return fetch(DATA_API) | |
.then((response) => response.json()) | |
.then((json) => { | |
// console.log(json); | |
this.setState({testapi: json}); | |
}); | |
this.props.fetchUser(); | |
}, | |
}) | |
), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment