Closed MMagueta closed 2 years ago
I noticed that in the docs the useState is as follows
let (currentUrl, updateUrl) = Feliz.React.useState(Feliz.Router.Router.currentUrl())
However there is a type mismatch with the useState, since it requires a unit -> 'T, resulting in
unit -> 'T
let (currentUrl, updateUrl) = Feliz.React.useState(Feliz.Router.Router.currentUrl)
Problem
I noticed that in the docs the useState is as follows
However there is a type mismatch with the useState, since it requires a
unit -> 'T
, resulting inPictures