Skip to content

Commit

Permalink
Merge pull request #1167 from Slumber86/master
Browse files Browse the repository at this point in the history
Update docs for deprecated prop-types
  • Loading branch information
yannickcr committed May 4, 2017
2 parents 4d5faee + 79415f1 commit d97e5f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/rules/no-deprecated.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ React.createClass({ /* Class object */ });
const propTypes = {
foo: PropTypes.bar,
};

import React, { PropTypes } from 'react';
```

The following patterns are not considered warnings:
Expand All @@ -31,4 +33,6 @@ ReactDOM.render(<MyComponent />, root);

// When [1, {"react": "0.13.0"}]
ReactDOM.findDOMNode(this.refs.foo);

import { PropTypes } from 'prop-types';
```

0 comments on commit d97e5f0

Please sign in to comment.