What is the difference between isomorphic-fetch and fetch?

前端 未结 1 577
孤街浪徒
孤街浪徒 2020-12-15 02:37

I\'ve seen two different fetch here:

  • https://github.com/github/fetch

  • https://github.com/matthew-andrews/isomorphic-fetch

相关标签:
1条回答
  • 2020-12-15 03:14

    FETCH is polyfill for browsers which don't have fetch function (caniuse.com/#search=fetch). It will add fetch function to your browser window object.

    While isomorphic-fetch is implementation of fetch for both node.js and browser, built on top of fetch polyfill.

    0 讨论(0)
提交回复
热议问题