npm i --save bugs-reproducer
const App = () => {
const popupRef = useRef();
const handleClick = () => {
popupRef.current.log('click on try me');
};
return (
<div className="App">
<Popup ref={popupRef}/>
<button onClick={handleClick}>
try me!
</button>
</div>
);
}