DEV Community

Cover image for The efficiency of "SWR: React Hooks for Data Fetching"
Gabriel Ernesto Martínez Cánepa
Gabriel Ernesto Martínez Cánepa

Posted on

The efficiency of "SWR: React Hooks for Data Fetching"

When it comes to data fetching, the new swr.now.sh technology is just groundbreaking

Basic Example
Yeap, that's it. AWESOME, right?

Real life example:

Code:
https://github.com/gemanepa/react-auth0-login/blob/master/src/components/RandomCuteAnimal/index.jsx

Live Version of the fetching working:
https://react-auth0-login.web.app/

Top comments (0)