mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
React->ReactDOM in src/
This commit is contained in:
1 parent
94ccda8543
commit
5a9dea00b9
3 files changed
+4
-4
No files matched your search
@@ -37,7 +37,7 @@ describe('ReactDOM', function() {
|
||||
return <form><input type="submit" value="Submit" /></form>;
|
||||
},
|
||||
componentDidMount: function() {
|
||||
form = React.findDOMNode(this);
|
||||
form = ReactDOM.findDOMNode(this);
|
||||
}
|
||||
});
|
||||
var instance = ReactTestUtils.renderIntoDocument(<Parent />);
|
||||
|
||||
@@ -503,8 +503,8 @@ describe('ReactCompositeComponent', function() {
|
||||
var Inner = React.createClass({
|
||||
componentWillUnmount: function() {
|
||||
// It's important that ReactMount.purgeID is called after any component
|
||||
// lifecycle methods, because a componentWillMount implementation is
|
||||
// likely to call React.findDOMNode(this), which will repopulate the
|
||||
// lifecycle methods, because a componentWillUnmount implementation is
|
||||
// likely to call ReactDOM.findDOMNode(this), which will repopulate the
|
||||
// node cache after it's been cleared, causing a memory leak.
|
||||
expect(ReactMount.purgeID.calls.length).toBe(0);
|
||||
innerUnmounted = true;
|
||||
|
||||
@@ -33,7 +33,7 @@ var React = require('React');
|
||||
*
|
||||
* var instances = renderHierarchy(
|
||||
* function(ComponentA[, ComponentB, ComponentC]) {
|
||||
* React.render(<ComponentA />, ...);
|
||||
* ReactDOM.render(<ComponentA />, ...);
|
||||
* })
|
||||
* );
|
||||
* instances[0][0]; // First return value of first render method.
|
||||
|
||||
Reference in new issue
Block a user