backroad
backroad copied to clipboard
Confirmation prompt system
The first need for a confirmation prompt is #14, but inevitably there will be more cases like this. We need an easy system for implementing these. After a bit of research, I think this would be a great NPM package to try out:
https://www.npmjs.com/package/react-confirm-alert
It has a nice option for configuring it with custom markup. So, we could implement a customized instance of it through a wrapper function in /utils
. This would provide simple use within other components in our application and make it easy to switch to something else in the future if needed (whether it be custom solution or another NPM package).