Is it possible to render in the reactor only when there is a focus in the input? and so that when the focus disappears, the render disappears? if you can, how?
1 answer
Make a handler that will change the state of the parent component. Through props, lower it to your component and, depending on the true or false values ​​in the props, render the component or render the empty string.
Optionally, you can do it in inline-styles and switch the element's visibility.
|
refsif inside the component. If we are talking about the basic render, the question is not clear for pure js. - MedvedevDev