I have the following component:
const ModalWrapper = props => {
return (
<Modal
isOpen={true}
ariaHideApp={false}
>
{props.children}
</Modal>
)
};
I'm using this modal in other file:
import ModalWrapper from '../components/CModal/ModalWrapper';
return (
<ModalWrapper
isOpen={this.state.showModal}
onRequestClose={this.handleCloseModal}
>
so, as in the component: isOpen will be always true, and I'm passing the showModal state, which will change according with the actions on my file.. there is some way in which I can change or override this isOpen method through my file?