Skip to content

Commit 1bbac74

Browse files
Updated "how to define propTypes..."
Imported from new prop-types module.
1 parent 00c9e52 commit 1bbac74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: react/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,8 @@
557557
- How to define `propTypes`, `defaultProps`, `contextTypes`, etc...
558558

559559
```jsx
560-
import React, { PropTypes } from 'react';
560+
import React from 'react';
561+
import PropTypes from 'prop-types';
561562
562563
const propTypes = {
563564
id: PropTypes.number.isRequired,

0 commit comments

Comments
 (0)