I recently use HyperAxe on legacy app and this is something I usually do:
let slider: HTMLInputElement form( slider = input({ type: "range" }) )
So if JSX return an instance of Element, I think ref property is really unnecessary because I can acquire the ref by assignment:
let slider: HTMLInputElement; <form> {slider = <input type={"range"} />} </form>
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I recently use HyperAxe on legacy app and this is something I usually do:
So if JSX return an instance of Element, I think ref property is really unnecessary because I can acquire the ref by assignment: