Skip to content

ooade/use-fetch-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Use Fetch Hook

TLDR; This repo shows how to build a custom hook to fetch and cache data!

Here's a deployed version of this example on Netlify!

I wrote a piece about it on Smashing Magazine.

Contents

Installation

Clone repo:

SSH:

git clone [email protected]:ooade/use-fetch-hook.git
cd use-fetch-hook

or

HTTPS:

git clone https://github.com/ooade/use-fetch-hook.git
cd use-fetch-hook

Run locally

Start a live-reload development server:

yarn start

If you have any question, feel free to reach out to me!

About

A custom hook to fetch and cache data

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •