💾 Archived View for wilw.capsule.town › log › 2020-12-15-react-query.gmi captured on 2023-07-10 at 14:05:41. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-04-19)

-=-=-=-=-=-=-

🏡 Home

Back to gemlog

React Query

Posted on 15 December 2020

If you write React web apps that interface with a backend web API then definitely consider trying React Query [1].

1

The library makes use of modern React patterns, such as hooks, to keep code concise and readable. It probably means you can keep API calls directly inside your normal component code rather than setting-up your own client-side API interface modules.

React Query will also cache resolved data through unique "query keys", so you can keep transitions in UIs fast with cached data without needing to rely on redux.

You'll still need to write the actual requests yourself (e.g. using fetch [2] or axios [3]) but using this certainly takes away a lot of the pain in building smooth asynchronous web apps.

2

3

To try it out install it with your usual Node package manager and begin with the quick start guide [4].

4

Reply via email

Back to gemlog