Tracking the Previous Page using React Context
There 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.
There 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.
Some quick notes for adding dark mode to a React app - allowing users to set their preferred mode and honoring their system preference by default.