React — await user input/confirmation

A replacement for for window.confirm() — HOOK STYLE!

Developing a app, dealing with CRUD means we often need to deal with a lot of user’s delete, and we need to provide a way to let user confirm deletion.

window.confirm() — This is the typical way of using the browser’s build in confirmation box.