you can also annotate in the tuple:
let (user: loadable<user, 'e>, setUser) = React.useState(_ => Loading)
Might be a bit more idiomatic.
you can also annotate in the tuple:
let (user: loadable<user, 'e>, setUser) = React.useState(_ => Loading)
Might be a bit more idiomatic.