Skip to content

v6.0.0

Choose a tag to compare

@10xSebastian 10xSebastian released this 30 Mar 07:56
· 42 commits to main since this release
import { ReactDialog } from 'depay-react-dialog'

  /*...*/

  close() {
    if(this.state == something) {
      this.setState({ showDialog: false })
    }
  }

  /*...*/

  <ReactDialog close={this.close} open={this.showDialog}>
    <h1>I am a dialog</h1>
    <button onclick={this.close}>Close Dialog</button>
  </ReactDialog>