Use Zustand for state management instead of React context

"At the moment React context can not be readily used between two renderers, this is due to a problem within React. If ReactDOM opens up a provider, you will not be able to consume it within . If managing state (like Redux) is your problem, then Zustand is likely the best solution"

Source: https://docs.pmnd.rs/react-three-fiber/advanced/gotchas

Btw, Zustand is super easy and awesome!