Hello,
There exist some React components which accept React components as props. The hydrate function does not handle this situation. So one could add this code at the beginning of the hydrate function:
for(attrib in tag.attribs){
if(isTag(tag.attribs[attrib]){
tag.attribs[attrib] = hydrate(components, tag.attribs[attrib]);
}
}
Hello,
There exist some React components which accept React components as props. The
hydratefunction does not handle this situation. So one could add this code at the beginning of thehydratefunction: