I run successfully the following code from SWR examples page:
import useSWR from "swr"; const fetcher = url => fetch(url).then(res => res.jso