Here I am going to explain how to create alert popup in React
Before proceeding to this tutorial . Learn how to install ant design in react Click here
After installing Ant design follow bellow steps
import { Popconfirm } from 'antd';
<Popconfirm
title="Are you sure to delete this task?"
onConfirm={this.confirm}
onCancel={this.cancel}
okText="Yes"
cancelText="No">
<a href="#">Delete</a>
</Popconfirm>
Happy Coding :)

No comments:
Post a Comment