GithubHelp home page GithubHelp logo

mohamedjaouda / react-query-useeffect Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ipenywis/react-query-useeffect

0.0 0.0 0.0 42 KB

Why you should use react-query instead of useEffects for API Calls?

JavaScript 92.04% CSS 6.67% HTML 1.29%

react-query-useeffect's Introduction

Why you should use React Query instead of useEffect for API Calls?

This repo, gives great examples of why you should use react-query library for fetching and storing the state of your server-side data in React instead of gambling with useEffect and redux

  • use react-query for fetching
  • it has isLoading, error, isSuccess with a single hook
  • It's smart about when to refetch and sharing data between components
  • Uses cache cleverly giving you all the control
  • Easy to use and makes it easier for your team

All the details are explained on CoderOne's youtube channel: https://youtu.be/Kjkx2BASAZA

react-query-useeffect's People

Contributors

ipenywis avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.