Tracking the Previous Page using React ContextThere are times that the previous path is needed in a React App. This is not available in the NextJS router or in React Router but it can be easily tracked and stored in a React Context.React ContextReactNextJSReact HookRouting