Closed francotiveron closed 1 year ago
Ups, sorry. At the end we used Lit.refValue
and Lit.refCallback
instead of Ref
to help the type checker but forgot to update the docs 😅
useRef
is very similar to the React hook with the same name. You can see a usage example in Lit.TodoMVC.
In https://fable.io/Fable.Lit/docs/hook-components.html the first example shows the use of Hook.useRef:
1 - In the row '<input {Ref inputRef}', where is the symbol 'Ref' defined? It doesn't seem to exist 2 - Is there a complete example/demo where we can see how useRef is intended to be used?