Use the Context API introduced in 16.3: https://reactjs.org/docs/context.html
This is the same API that or anything that "teleports" state around your tree uses internally.
This is the same API that or anything that "teleports" state around your tree uses internally.