import React from "react"; import * as Iso from "@eno/iso"; export default ()=> { const [countGet, countSet] = React.useState(1); const [routeGet, routeSet] = Iso.Router.Consumer(); type CatFact = {fact:string, length:number}|undefined; const [Data, Updating] = Iso.Fetch.Use(`https://catfact.ninja/fact`); return
Data:{Data && (Data as CatFact)?.fact}
Status:{Updating?'loading':'done'}