[change] avoid 'react-dom/lib/*' where possible

This commit is contained in:
Nicolas Gallagher
2017-02-05 16:36:26 -08:00
parent c8129c2a99
commit c7771ac64f
4 changed files with 5 additions and 11 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
import { Component } from 'react'; import { Component } from 'react';
import invariant from 'fbjs/lib/invariant'; import invariant from 'fbjs/lib/invariant';
import { unmountComponentAtNode } from 'react-dom/lib/ReactMount'; import { unmountComponentAtNode } from 'react-dom';
import renderApplication, { getApplication } from './renderApplication'; import renderApplication, { getApplication } from './renderApplication';
const emptyObject = {}; const emptyObject = {};
+1 -4
View File
@@ -1,8 +1,5 @@
import findNodeHandle from './modules/findNodeHandle'; import findNodeHandle from './modules/findNodeHandle';
import ReactDefaultInjection from 'react-dom/lib/ReactDefaultInjection'; import { render, unmountComponentAtNode } from 'react-dom';
import { render, unmountComponentAtNode } from 'react-dom/lib/ReactMount';
ReactDefaultInjection.inject();
// APIs // APIs
import I18nManager from './apis/I18nManager'; import I18nManager from './apis/I18nManager';
+1 -4
View File
@@ -1,8 +1,5 @@
import findNodeHandle from './modules/findNodeHandle'; import findNodeHandle from './modules/findNodeHandle';
import ReactDefaultInjection from 'react-dom/lib/ReactDefaultInjection'; import { render, unmountComponentAtNode } from 'react-dom';
import { render, unmountComponentAtNode } from 'react-dom/lib/ReactMount';
ReactDefaultInjection.inject();
// APIs // APIs
import Animated from './apis/Animated'; import Animated from './apis/Animated';
+2 -2
View File
@@ -1,2 +1,2 @@
import findNodeHandle from 'react-dom/lib/findDOMNode'; import { findDOMNode } from 'react-dom';
export default findNodeHandle; export default findDOMNode;