Skip to content

Commit 5a9dea0

Browse files
committed
React->ReactDOM in src/
1 parent 94ccda8 commit 5a9dea0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/renderers/dom/client/__tests__/ReactDOM-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ describe('ReactDOM', function() {
3737
return <form><input type="submit" value="Submit" /></form>;
3838
},
3939
componentDidMount: function() {
40-
form = React.findDOMNode(this);
40+
form = ReactDOM.findDOMNode(this);
4141
}
4242
});
4343
var instance = ReactTestUtils.renderIntoDocument(<Parent />);

src/renderers/shared/reconciler/__tests__/ReactCompositeComponent-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,8 +503,8 @@ describe('ReactCompositeComponent', function() {
503503
var Inner = React.createClass({
504504
componentWillUnmount: function() {
505505
// It's important that ReactMount.purgeID is called after any component
506-
// lifecycle methods, because a componentWillMount implementation is
507-
// likely to call React.findDOMNode(this), which will repopulate the
506+
// lifecycle methods, because a componentWillUnmount implementation is
507+
// likely to call ReactDOM.findDOMNode(this), which will repopulate the
508508
// node cache after it's been cleared, causing a memory leak.
509509
expect(ReactMount.purgeID.calls.length).toBe(0);
510510
innerUnmounted = true;

src/test/createHierarchyRenderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var React = require('React');
3333
*
3434
* var instances = renderHierarchy(
3535
* function(ComponentA[, ComponentB, ComponentC]) {
36-
* React.render(<ComponentA />, ...);
36+
* ReactDOM.render(<ComponentA />, ...);
3737
* })
3838
* );
3939
* instances[0][0]; // First return value of first render method.

0 commit comments

Comments
 (0)