A React confirm component. It does not work like the native Window.confirm(), but instead takes an action argument, which is the function to execute if the user confirms. The confirm dialog renders ...
When a JavaScript confirm dialog is generated by a web page, it will give two options, "Cancel" or "OK". If Cancel is clicked, the function returns false. If OK is clicked, the function returns true.