I have a modal wrapper and within it it has react-modal which is an npm module.
In the render method it open base on the this.props.isOpen
<ReactModal
contentLabel="modal-big"
className="modal-big"
isOpen={this.props.isOpen}
shouldCloseOnOverlayClick={true}
>
{this.content()}
</ReactModal>
and within this.content I have button that should close the modal. But how to change the state of the parent? I can't call this.props.isOpen = false;