function App() { const { data } = useSWR('/api/data', ... You can just use fetch for POST requests. I don't see the benefit of allowing POST in SWR.
確定! 回上一頁