<input /><input /> element inside the Input component thanks to the spreading of the rest of the props ({...props}{...props}). But when I try to add a reference to it, like so:<input /><input /> element, instead it targets what I suppose is a component object of some sort. Definitely, the reference doesn't target the HTMLInputElementHTMLInputElement as it should. I believe I'm forwarding the reference in an incorrect way. The attached image is what console.log(refInput.current)console.log(refInput.current) logs.
Join the Discord to ask follow-up questions and connect with the community