let { Dialog, DialogType, DialogFooter, PrimaryButton, DefaultButton, Fabric } = window.Fabric; class DialogBlockingExample extends React.Component< {}, { hideDialog: boolean; } > { constructor(props: {}) { super(props); this.state = { hideDialog: true }; } public render() { return (
); } private _showDialog = (): void => { this.setState({ hideDialog: false }); }; private _closeDialog = (): void => { this.setState({ hideDialog: true }); }; } ReactDOM.render(, document.getElementById('content'));