DEV Community

AnishaChoudhury
AnishaChoudhury

Posted on

onClick pop up

Image description

Hi, I have this button which on clicking should show a pop up with Ok and Cancel buttons. I've a onClick function which is calling to functions on clicking. So I want to insert pop up in onClick. Here's my code:
<>
onClick={() => {
props.setView('downTime');
props.startTimer();
}}

</>

Top comments (0)