https://vercel.com/guides/react-context-state-management-nextjs

  • Context enables components to share data without passing props down manually at every level of the component tree.
  • This is particularly useful for data that can be considered “global” for a tree of React components, such as user authentication status or theme preferences.