Skip to content

Commit

Permalink
Use setTextContent in ReactDOM for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Dec 20, 2017
1 parent a967cd5 commit 10e8637
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react-dom/src/client/ReactDOM.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import warning from 'fbjs/lib/warning';
import * as ReactDOMComponentTree from './ReactDOMComponentTree';
import * as ReactDOMFiberComponent from './ReactDOMFiberComponent';
import * as ReactInputSelection from './ReactInputSelection';
import setTextContent from './setTextContent';
import validateDOMNesting from './validateDOMNesting';
import * as ReactBrowserEventEmitter from '../events/ReactBrowserEventEmitter';
import * as ReactDOMEventListener from '../events/ReactDOMEventListener';
Expand Down Expand Up @@ -736,7 +737,7 @@ const DOMRenderer = ReactFiberReconciler({
},

resetTextContent(domElement: Instance): void {
domElement.textContent = '';
setTextContent(domElement, '');
},
commitTextUpdate(
Expand Down

0 comments on commit 10e8637

Please sign in to comment.