SWR 就是一個custom Hook,export 出來的API 也很簡單,就 useSWR ... 按下其中一個按鈕,onClick 裡是Math.random 出一個亂數,然後使用 useSWR(key, ...
確定! 回上一頁