Skip to content

Commit 120cf34

Browse files
committed
add react-lifecycles-compat polyfill to support [email protected]
1 parent 5bc6c06 commit 120cf34

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

package-lock.json

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,15 @@
3838
"timers": "fake"
3939
},
4040
"peerDependencies": {
41-
"react": ">=16.3.0",
42-
"react-dom": ">=16.3.0"
41+
"react": ">=15.0.0",
42+
"react-dom": ">=15.0.0"
4343
},
4444
"dependencies": {
4545
"chain-function": "^1.0.0",
4646
"dom-helpers": "^3.3.1",
4747
"loose-envify": "^1.3.1",
4848
"prop-types": "^15.5.6",
49+
"react-lifecycles-compat": "^3.0.4",
4950
"warning": "^3.0.0"
5051
},
5152
"devDependencies": {

src/TransitionGroup.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import chain from 'chain-function';
22
import React from 'react';
33
import PropTypes from 'prop-types';
44
import warning from 'warning';
5+
import { polyfill } from 'react-lifecycles-compat';
56

67
import { getChildMapping, mergeChildMappings } from './utils/ChildMapping';
78

@@ -235,4 +236,4 @@ class TransitionGroup extends React.Component {
235236
TransitionGroup.propTypes = propTypes;
236237
TransitionGroup.defaultProps = defaultProps;
237238

238-
export default TransitionGroup;
239+
export default polyfill(TransitionGroup);

0 commit comments

Comments
 (0)