Created
January 11, 2019 13:08
-
-
Save mfrachet/eda3a65362f083c7bc92efbe8212cee0 to your computer and use it in GitHub Desktop.
react-cache-custom-fetch
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
export const Pokemon = () => { | |
const bulbasaur = customFetch("https://pokeapi.co/api/v2/pokemon/1/"); | |
return <div>{bulbasaur.name}</div>; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment