Passing a props to call a function is not working – Javascript
I have a Cancel button. I would like to perform a specific function in another js file when the button is pressed. Here is what I am doing. function Add(props) { const [cancel, setCancel] = useState(false); const handleCancel = ()…