DEV Community

loading...

Discussion on: Building a modal in React.

Collapse
achowba profile image
Atauba Prince Author

Hello
Add this below the closeModalHandler

continueFunction = () => {
    // your function body goes here
}

and then change the continue button to this

<button className="btn-continue" onClick={props.close}>CONTINUE</button>