class DialogTest extends React.Component { showDialog = () => { this.refs.dialog.show(); }; closeDialog = () => { this.refs.dialog.hide(); }; actions = [ { label: "Cancel", onClick: this.closeDialog }, { label: "Save", onClick: this.closeDialog } ]; render () { return (
); } } return ;