Skip to Content
FrontendTechReactReact query vs Redux toolkit

React query vs Redux toolkit

image

React query vs redux

https://stackoverflow.com/questions/68525459/what-is-the-main-difference-between-react-query-and-redux 

For data from API

The best to use in this case is React Query instead of Redux if we need those data for a specific or multiple component, but if it’s global and is used almost everywhere, use Redux

For local (client-side) data context

The best to use is Redux

image

Redux toolkit vs Redux saga

Use react toolkit for project with simple asynchronous task and complex async logic, use Saga

image
Last updated on