Update hook-components.md

This commit is contained in:
Alfonso Garcia-Caro
2022-08-22 21:39:35 +09:00
committed by GitHub
parent d3da340aea
commit 2d99bad742

View File

@@ -16,7 +16,7 @@ let NameInput() =
html $"""
<div class="content">
<p>Hello {value}!</p>
<input {Ref inputRef}
<input {Lit.refValue inputRef}
value={value}
@keyup={EvVal setValue}
@focus={Ev(fun _ -> inputRef.Value |> Option.iter (fun el -> el.select()))}>