Fetching Data in React with SWR (Stale While Revalidate)
SWR is one of the coolest ways to fetch data in React. The name stands for Stale While Revalidate, which describes its strategy — it returns cached (stale) data first, then revalidates it by fetching fresh data in the background.
It’s both a strategy...
ebuntoday.hashnode.dev3 min read