Skip to content

Instantly share code, notes, and snippets.

@Palatnyi
Created June 9, 2018 18:54
Show Gist options
  • Save Palatnyi/ec8ce57aebd1205ef3799913ab827f8c to your computer and use it in GitHub Desktop.
Save Palatnyi/ec8ce57aebd1205ef3799913ab827f8c to your computer and use it in GitHub Desktop.
this.state = {
modal1: true,
modal2: false,
modal3: true
}
toggleModal1 = () => this.setState({ modal1: !this.state.modal1 })
toggleModal2 = () => this.setState({ modal2: !this.state.modal2 })
toggleModal3 = () => this.setState({ modal3: !this.state.modal3 })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment