reactjs - What is the difference between react-fetch and whatwg-fetch -


i'm new reactjs , i've been reading on how , post data api. i've seen these two, i'm not sure use , what's difference between two? read i'm not sure use. thanks!

react-fetch allows use component(jsx) instead of writing specific js code. under hood, uses original fetch function(or isomorphic-fetch, not relevant question).

i suggest reading fetch on mdn before getting decision.

which should use? depends on personal preferences. if don't have experience fetch, i'd use whatwg-fetch understand how works better. once have better understanding of it, can choose between 2 libraries. if have simple ajax request, consider using react-fetch. if situation requires mutating state, or other complex logic, i'd suggest using whatwg-fetch.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -