I want to make:
render: () -> {@props.children}
This makes me do:
render: () -> <div>{@props.children}</div>
The reason I want to do the first is because the children provided have their own context based on the owner. But if I create them using the shell, then the element that is the parent does not have its context set. Then a warning is issued:
Owner and parent based contexts differ (values: undefined vs [object Object] ) for key (x)
This is discussed here: https://gist.github.com/jimfb/0eb6e61f300a8c1b2ce7
But no solution is proposed.
The warning occurs because the component that displays the child is the βownerβ and it sets the context, but the div shell element is βparentβ and has no context. My idea was to get rid of the div. But I canβt get rid of him.
user911625
source share