File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
packages/react-css-transition-replace Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
### Next
2
2
3
+ - [ UPGRADE] Rename to ` UNSAFE_componentWillReceiveProps ` ; requires `react@>=16.3.0.
3
4
- [ UPGRADE] Remove the use of ` componentWillMount ` which is unsafe.
4
5
- [ UPGRADE] Update dependencies to latest stable versions.
5
6
- [ DEPENDENCY] Remove the ` warning ` dependency since function refs are now standard practice.
Original file line number Diff line number Diff line change 21
21
"prop-types" : " ^15.6.1"
22
22
},
23
23
"peerDependencies" : {
24
- "react" : " ^15.0.0 || ^ 16.0 .0" ,
25
- "react-dom" : " ^15.0.0 || ^ 16.0 .0"
24
+ "react" : " ^16.3 .0" ,
25
+ "react-dom" : " ^16.3 .0"
26
26
},
27
27
"devDependencies" : {
28
28
"babel-cli" : " ^6.26.0" ,
Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ export default class ReactCSSTransitionReplace extends React.Component {
38
38
childComponent : 'span' ,
39
39
}
40
40
41
- constructor ( props , context ) {
42
- super ( props , context )
41
+ constructor ( props ) {
42
+ super ( props )
43
43
44
44
this . childRefs = Object . create ( null )
45
45
@@ -66,7 +66,7 @@ export default class ReactCSSTransitionReplace extends React.Component {
66
66
this . unmounted = true
67
67
}
68
68
69
- componentWillReceiveProps ( nextProps ) {
69
+ UNSAFE_componentWillReceiveProps ( nextProps ) {
70
70
const nextChild = nextProps . children ? React . Children . only ( nextProps . children ) : undefined
71
71
const { currentChild } = this . state
72
72
You can’t perform that action at this time.
0 commit comments