[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 invariant from 'fbjs/lib/invariant';
import { unmountComponentAtNode } from 'react-dom/lib/ReactMount';
import { unmountComponentAtNode } from 'react-dom';
import renderApplication, { getApplication } from './renderApplication';
const emptyObject = {};
+1 -4
View File
@@ -1,8 +1,5 @@
import findNodeHandle from './modules/findNodeHandle';
import ReactDefaultInjection from 'react-dom/lib/ReactDefaultInjection';
import { render, unmountComponentAtNode } from 'react-dom/lib/ReactMount';
ReactDefaultInjection.inject();
import { render, unmountComponentAtNode } from 'react-dom';
// APIs
import I18nManager from './apis/I18nManager';
+1 -4
View File
@@ -1,8 +1,5 @@
import findNodeHandle from './modules/findNodeHandle';
import ReactDefaultInjection from 'react-dom/lib/ReactDefaultInjection';
import { render, unmountComponentAtNode } from 'react-dom/lib/ReactMount';
ReactDefaultInjection.inject();
import { render, unmountComponentAtNode } from 'react-dom';
// APIs
import Animated from './apis/Animated';
+2 -2
View File
@@ -1,2 +1,2 @@
import findNodeHandle from 'react-dom/lib/findDOMNode';
export default findNodeHandle;
import { findDOMNode } from 'react-dom';
export default findDOMNode;