Created
March 23, 2018 21:34
-
-
Save jacobp100/e21ec55674189a79e6bb49f8648bc8d9 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
const fetchUser = createDataFetcher('http://website.com/users/me') | |
const UsesData = () => { | |
const user = fetchUser() | |
return ( | |
<div> | |
{user.name} | |
</div> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment