The case is like I have a registration button and when I am clicking on that then signup modal will popup. Now I want to open Login modal from signup modal but signup modal should be closed after login modal popped up.
show={this.props.signupModalOn}
onHide={this.props.onSignupModalCall}
show={this.props.loginModalOn}
onHide={this.props.onLoginModalCall}
Here is the code for ModalA.js and ModalB.js
I tried some cases and I am getting nested popup modal but the first modal is not getting closed.