react-router-guard-dirty-state

Guard unsaved / dirty componets (usually containing forms) by alets when leaving both by onbeforeunload and react-roter routes.

Browse on unpkg