Skip to content

Commit

Permalink
fix(react): Migrate from React.PropTypes (#88)
Browse files Browse the repository at this point in the history
With React 15.5.0, `React.PropTypes` are now extracted to a separate package. They are still accessible via the main React object, but using them will log a deprecation warning to the console when in development mode.
  • Loading branch information
HiDeoo authored and davidnpma committed Apr 8, 2017
1 parent 1e18f1d commit 23b95cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,15 @@
"react-native"
],
"devDependencies": {
"react": "^0.14.0 || ^15.0.0",
"babel-cli": "^6.9.0",
"babel-core": "^6.9.0",
"babel-loader": "^6.2.4",
"babel-plugin-rewire": "^1.0.0-rc-3",
"babel-preset-es2015": "^6.3.3",
"babel-preset-react": "^6.5.0",
"babel-preset-stage-0": "^6.3.13",
"prop-types": "^15.5.4",
"react": "^0.14.0 || ^15.0.0",
"react-addons-test-utils": "^15.0.0",
"react-dom": "^0.14.0 || ^15.0.0",
"rimraf": "^2.5.2",
Expand Down
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, {Component, PropTypes} from 'react'
import PropTypes from 'prop-types';
import React, {Component} from 'react'
import ReactDOM from 'react-dom'
import style from './style.js'
import ErrorStackParser from 'error-stack-parser'
Expand Down

0 comments on commit 23b95cc

Please sign in to comment.