dillon1000/react

Commit

Clarify reason for setTextContent helper (#11813)

* Update comment on setTextContent

update the comment explaining the reason for the helper

* Use `setTextContent` in ReactDOM for consistency
Browse files
Changed paths2 files
First-parent comparison
M packages/react-dom/src/client/ReactDOM.js ModifiedM packages/react-dom/src/client/setTextContent.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…