Passing a component as a context value
I want to implement a dynamic sidebar which can show different content based on where you are in the component hierarchy. To achieve this I was trying to use the context API to supply the sidebar content. My goal was that descendants could either provide their own sidebar content or use one defined higher up in the hierarchy.
Trying something like this I keep getting hydration errors (see attached image). Is this not possible? Any alternative approaches to achieve my goal that you can think about?
Trying something like this I keep getting hydration errors (see attached image). Is this not possible? Any alternative approaches to achieve my goal that you can think about?

