Almost any app would want to use authentication. While the server side implementation in the template can be just a plug:
let login username password =
if username = "jonh" && password = "123" then
Ok username
else
Error "go away"
the whole plumbing of Fable/Feliz communicating with the server and updating global state (for logged in status, for example) is not very trivial for a beginner and would deserve a simple example. I could only make it work with Elmish, not with the provided sample of useDeferredCallback
Almost any app would want to use authentication. While the server side implementation in the template can be just a plug:
the whole plumbing of Fable/Feliz communicating with the server and updating global state (for logged in status, for example) is not very trivial for a beginner and would deserve a simple example. I could only make it work with Elmish, not with the provided sample of useDeferredCallback