Skip to content

Commit 8e0fa33

Browse files
committed
Use prop-types package instead React.PropTypes for typechecking
Using React.PropTypes is deprecated since React v15.5 Details: https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html#migrating-from-react.proptypes
1 parent 12fbcfe commit 8e0fa33

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,8 @@
9090
},
9191
"release-script": {
9292
"bowerRepo": "git@github.com:react-bootstrap/react-router-bootstrap-bower.git"
93+
},
94+
"dependencies": {
95+
"prop-types": "^15.5.8"
9396
}
9497
}

src/LinkContainer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { Component, PropTypes } from 'react';
1+
import React, { Component } from 'react';
2+
import PropTypes from 'prop-types';
23
import { Route } from 'react-router-dom';
34

45
const isModifiedEvent = (event) =>

0 commit comments

Comments
 (0)