Friday, 9 July 2021

Create popup Alert in React application

 Here I am going to explain how to create alert popup in React 



React application, Create popup Alert, antd alert

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