React->ReactDOM in src/
Jim committed
Oct 5, 2015 at 15:15 UTC
5a9dea00b926815a37f7bafa803e9fd42a221f4d
3 files changed
+4
-4
src/renderers/dom/client/__tests__/ReactDOM-test.js
+1
-1
@@ -37,7 +37,7 @@ describe('ReactDOM', function() {
37
return <form><input type="submit" value="Submit" /></form>;
38
},
39
componentDidMount: function() {
40
- form = React.findDOMNode(this);
40
+ form = ReactDOM.findDOMNode(this);
41
}
42
});
43
var instance = ReactTestUtils.renderIntoDocument(<Parent />);
src/renderers/shared/reconciler/__tests__/ReactCompositeComponent-test.js
+2
-2
@@ -503,8 +503,8 @@ describe('ReactCompositeComponent', function() {
503
var Inner = React.createClass({
504
componentWillUnmount: function() {
505
// 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
508
// node cache after it's been cleared, causing a memory leak.
509
expect(ReactMount.purgeID.calls.length).toBe(0);
510
innerUnmounted = true;
src/test/createHierarchyRenderer.js
+1
-1
@@ -33,7 +33,7 @@ var React = require('React');
33
*
34
* var instances = renderHierarchy(
35
* function(ComponentA[, ComponentB, ComponentC]) {
36
- * React.render(<ComponentA />, ...);
36
+ * ReactDOM.render(<ComponentA />, ...);
37
* })
38
* );
39
* instances[0][0]; // First return value of first render method.