Created
October 7, 2018 16:22
-
-
Save whtswrng/e9788fd1612afa9e6b67985c35e9ad79 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
class App extends Component { | |
... | |
async fetchUsers() { | |
const users = await fetch('http://totallyhardcodedurl.com/stupid'); | |
this.setState({users}); | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment