SWR (State While Revalidate) is a React hook used to fetch data from the server. It provides plenty of features for performance, correctness and stability. The SWR is built by the Next.JS team with high performance in mind. It has build caching system and deduplication systems.

1m read timeFrom javascript.plainenglish.io
Post cover image
Table of contents
Why You Should Use useSWR Instead of useState When Calling APIsWhat is SWR?How to use it?Features offered by SWRPrefetching Data
2 Comments

Sort: