Some APIs choose JSONP over CORS to respond to cross-domain requests.
fetch API to request data from a JSONP endpoint, it will most likely fail due to invalid server CORS configuration.
Most APIs use CORS instead of JSONP for many reasons covered here.
For the remaining that still use JSONP, fetch-jsonp provides a similar api to
fetch that includes
If you use SWR to request data for your components, you could use
fetch-jsonp instead of
fetch for your