diff --git a/example/deep/component.tsx b/example/deep/component.tsx index 124ecfc..f588cf3 100644 --- a/example/deep/component.tsx +++ b/example/deep/component.tsx @@ -4,14 +4,18 @@ 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'}