Skip to content

Instantly share code, notes, and snippets.

@mark0978
Created February 21, 2019 15:36
Show Gist options
  • Save mark0978/c018ca88599e96c47eebe19d138d17f7 to your computer and use it in GitHub Desktop.
Save mark0978/c018ca88599e96c47eebe19d138d17f7 to your computer and use it in GitHub Desktop.
The Cached version of the Async fetching of an author
fetchAuthor = url => {
authorCache.getAuthor(url).then(response => {
this.setState({
author: response
});
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment