score:1

Accepted answer
const { response, error } = useFetch<IResponse>(
    "http://www.omdbapi.com/?apikey=****&s=batman&page=2"
)

score:0

const [response, setResponse] = useState<IResponse|{}>({});
const [error, setError] = useState<object|{}>({});

Related Query

More Query from same tag