Skip to content

Commit

Permalink
Add support for React 16
Browse files Browse the repository at this point in the history
  • Loading branch information
nickuraltsev committed Nov 12, 2017
1 parent 1561542 commit 66eb15d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
},
"license": "MIT",
"main": "lib/index.js",
"dependencies": {
"prop-types": "15.6.0"
},
"devDependencies": {
"babel-cli": "^6.24.0",
"babel-core": "^6.24.0",
Expand All @@ -34,8 +37,7 @@
"rimraf": "^2.6.1"
},
"peerDependencies": {
"react": "^15.0.0",
"react-dom": "^15.0.0"
"react": ">=15"
},
"prettier": {
"useTabs": false,
Expand Down
3 changes: 2 additions & 1 deletion src/OverflowDetector.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ResizeDetector from './ResizeDetector';

export default class OverflowDetector extends Component {
Expand Down
3 changes: 2 additions & 1 deletion src/ResizeDetector.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';

const OBJECT_STYLE = {
display: 'block',
Expand Down

0 comments on commit 66eb15d

Please sign in to comment.