Skip to content

Commit d97e5f0

Browse files
authored
Merge pull request #1167 from Slumber86/master
Update docs for deprecated prop-types
2 parents 4d5faee + 79415f1 commit d97e5f0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/rules/no-deprecated.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ React.createClass({ /* Class object */ });
2222
const propTypes = {
2323
foo: PropTypes.bar,
2424
};
25+
26+
import React, { PropTypes } from 'react';
2527
```
2628

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

3234
// When [1, {"react": "0.13.0"}]
3335
ReactDOM.findDOMNode(this.refs.foo);
36+
37+
import { PropTypes } from 'prop-types';
3438
```

0 commit comments

Comments
 (0)