React Query Vs Redux Toolkit

React query vs Redux toolkit

React query vs redux

https://stackoverflow.com/questions/68525459/what-is-the-main-difference-between-react-query-and-redux (opens in a new tab)

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

Redux toolkit vs Redux saga

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