DOM references
To interact with actual DOM Element — you need to acquire a reference to it. To get a reference, you can create a Subject and pass that subject to special ref property on JSX element:
If DOM tree is updated ref$
will emit a reference to the new DOM element.
NOTE: ref$
will automatically complete with the component
Focus example
Here's a more sophisticated example with a Button, focusing Input on click:
Last updated