DEV Community

talent
talent

Posted on

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)