import axios, { CancelTokenSource } from "axios";. Let's add a cancel token and a loading flag to our state: interface IState { posts: IPost[]; error: string; ...
確定! 回上一頁