Custom hook to identify unsaved changes in ReactJs

When users are filling out the long forms it might happen that they forget they made changes and without saving those changes they might…