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)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay