Overview
use-unsaved-changes
is a React hook designed to simplify handling unsaved changes in forms. It provides an intuitive way to detect when a user has made changes to form fields and prompt them before navigating away.
Features
- Detect Unsaved Changes
- Customizable Prompts
- Integration with Next App Router
package by
Mohamed SaiedInstallation
npm install use-unsaved-changes