This plugin decorates the Hyper component, however, it takes from the props the customChildren and adds its components but then puts them in the customInnerChildren prop, here:
The problem with this, is that if other plugin decorates this component, if it uses customInnerChildren the elements it puts there will be ignored, because this plugin overwrites completely that property; and if it uses customChildren, the components the other plugin puts there will be rendered twice, because this plugin takes that property and joins them in the customInnerChildren.
This plugin decorates the
Hyper
component, however, it takes from the props thecustomChildren
and adds its components but then puts them in thecustomInnerChildren
prop, here:The problem with this, is that if other plugin decorates this component, if it uses
customInnerChildren
the elements it puts there will be ignored, because this plugin overwrites completely that property; and if it usescustomChildren
, the components the other plugin puts there will be rendered twice, because this plugin takes that property and joins them in thecustomInnerChildren
.