Update reference-react-component.md (#8126)

line 320: For example, this code ensures that the `color` prop is a string
This commit is contained in:
Eugene
2016-10-27 22:25:43 +04:00
committed by Dan Abramov
parent 99d139319f
commit 9c27104e9f

View File

@@ -325,7 +325,7 @@ class CustomButton extends React.Component {
}
CustomButton.propTypes = {
name: React.PropTypes.string
color: React.PropTypes.string
};
```