If I was just using plain React, I would use the Context API or even global variables to keep track of the state of an application. Whats the best way to achieve this when using Remix?

  • useOutletContext

P.S. You can definitely still use context if you like!

Passing state across components in RemixJS