score:0

fetch(url).then(data =>{
   return Modal.confirm({
            centered: true,
            title:data.title,
            okText: 'okay',
            cancelText: 'cancel',
            onOk: () => {
               this.props.setForm('');
            },
         });
})

Related Query

More Query from same tag