File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- import * as PropTypes from 'prop-types' ;
1
+ import PropTypes from 'prop-types' ;
2
2
import addOneClass from 'dom-helpers/class/addClass' ;
3
3
4
4
import removeOneClass from 'dom-helpers/class/removeClass' ;
Original file line number Diff line number Diff line change 1
1
import PropTypes from 'prop-types' ;
2
2
import React from 'react' ;
3
- import { findDOMNode } from 'react-dom'
3
+ import ReactDOM from 'react-dom'
4
4
import TransitionGroup from './TransitionGroup' ;
5
5
6
6
/**
@@ -28,7 +28,7 @@ class ReplaceTransition extends React.Component {
28
28
const child = React . Children . toArray ( children ) [ idx ] ;
29
29
30
30
if ( child . props [ handler ] ) child . props [ handler ] ( ...originalArgs )
31
- if ( this . props [ handler ] ) this . props [ handler ] ( findDOMNode ( this ) )
31
+ if ( this . props [ handler ] ) this . props [ handler ] ( ReactDOM . findDOMNode ( this ) )
32
32
}
33
33
34
34
render ( ) {
Original file line number Diff line number Diff line change 1
- import * as PropTypes from 'prop-types'
1
+ import PropTypes from 'prop-types'
2
2
import React from 'react'
3
3
import ReactDOM from 'react-dom'
4
4
You can’t perform that action at this time.
0 commit comments