import useSWR from 'use-swr' function Profile () { const { data, error } = useSWR('/api/user', fetch) if (error) return <div>failed to load</div> if (!data) ...
確定! 回上一頁