【Typescript】axiosのREADME読んでみた Part10 最終回【React】
この記事はReactでaxiosを使うために、axiosのREADMEを読んで得た情報をまとめたものです。React×Typescriptのサンプルコードも載せています。
こんにちは!nomurabbitです。今回はaxiosに関する記事です。
今回で最終回となります。一緒に勉強していきましょう。
Semver
Until axios reaches a 1.0 release, breaking changes will be released with a new minor version. For example 0.5.1, and 0.5.4 will have the same API, but 0.6.0 will have breaking changes.
axios は1.0になるまでに大幅な仕様変更の可能性があるジョ
Promises
axios depends on a native ES6 Promise implementation to be supported. If your environment doesn't support ES6 Promises, you can polyfill.
axios はES6 のPromiseを実装しているから、場合によってはpolyfillを使う必要があるんですね。
TypeScript
axios includes TypeScript definitions and a type guard for axios errors.
axiosにはTypescriptの定義ファイルが含まれるジョ。
このシリーズでも何度かTypescriptの定義を確認しましたね。
Online one-click setup
You can use Gitpod an online IDE(which is free for Open Source) for contributing or running the examples online.
READMEのこのボタンから
Gitpod が起動できます。
まとめ
というわけでPart1からPart10にわたってaxiosについて勉強してきましたが、いかがでしたでしょうか?
次のシリーズもぜひご覧ください。では!
参考
axios
github.com