dillon1000/react

Commit

Manage children inside DOM properties

Fiber manages children separately so we don't need to do it here.
However, we special case the text content children and
dangerouslySetInnerHTML.

This reveals a bug that we currently don't handle the case where we switch
from dangerouslySetInnerHTML or text children to element children, because
child insertions are handled before the parent updates. We could possibly
handle this case by removing all nodes before the first host child but
that is a bit unfortunate.
Browse files
Changed paths1 file
First-parent comparison
M src/renderers/dom/fiber/ReactDOMFiberComponent.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…