DEV Community

talent
talent

Posted on

1

React Use hook

New #React use hook

**One of the coolest things coming to React in a long time!

React has a new RFC (request for comments) with a proposal for a new hook that will simplify fetching data and make it safer.

It will allow fetching more easily and also fetching conditionally.
It is similar to await in the sense that it unwraps the value of a promise.

React-query and SWR will still be relevant since they add a lot of features like caching. But they will probably incorporate the new API under the hood**

Image description

Top comments (0)

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free