Update hook-components.md
This commit is contained in:
committed by
GitHub
parent
d3da340aea
commit
2d99bad742
@@ -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()))}>
|
||||
|
||||
Reference in New Issue
Block a user