react-router-dom-last-location (npm): Provides access to the last location in react + react-router (v6.x) apps. Useful for handling internal routing. Easily prevent leaving your app by users.
Keywords: react|react-router|location|history|last-location