Closed kamalkrishna3000 closed 7 years ago
Code I have used
class Login extends React.Component {
constructor(props) { super(props); this.state = { searchString: 'admin', password : 'admin', isModalOpen: true }; } openModal() { this.setState({isModalOpen: true}); }
closeModal() { this.setState({isModalOpen: false}); }
render() { return(
); } }
I had the same issue. It seems like the example provided is not up-to-date. I had to change 'isVisible' to 'visible' and it worked.
Code I have used
class Login extends React.Component {
constructor(props) { super(props); this.state = { searchString: 'admin', password : 'admin', isModalOpen: true }; } openModal() { this.setState({isModalOpen: true}); }
closeModal() { this.setState({isModalOpen: false}); }
render() { return(
); } }