dillon1000/react

Commit

Support rendering different components into same node

var container = ...; // some DOM node
React.renderComponent(<div />, container);
React.renderComponent(<span />, container);

This should replace the rendered <div> with a <span>, effectively
reconciling at the root level.
Browse files
Changed paths2 files
First-parent comparison
M src/core/ReactMount.js ModifiedA src/core/__tests__/ReactMount-test.js Added
Patch

Files changed

Rendering syntax-highlighted changes…