Check out example codes for "comfirm before delete". It will help you in understanding the concepts better.
Code Example 1
<a href="#" title="delete" class="delete" onclick="return confirm('Are you sure you want to delete this item')">Delete</a>
Learn ReactJs, React Native from akashmittal.com