I have functional component as below:
function TextInput() {
return (
<div>
<input ref={inputRef}> {children}
</input>
</div>
}
I have a new added ref to above component. I want add basic sanity check to test ref in above component.
Aucun commentaire:
Enregistrer un commentaire