Javascript – React needs two clicks to update boolean state when triggering button onClick event
I have a React functional component in which I have some input fields, a button, and a tooltip. The tooltip is disabled by default and should only be enabled and visible if the button is clicked while the input fields…