mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 00:28:25 -05:00
Merge pull request #1370 from hanzhijue/patch-1
Fix the example of "propTypes"
This commit is contained in:
@@ -360,8 +360,8 @@
|
||||
};
|
||||
|
||||
// good
|
||||
function SFC({ foo, bar }) {
|
||||
return <div>{foo}{bar}</div>;
|
||||
function SFC({ foo, bar, children }) {
|
||||
return <div>{foo}{bar}{children}</div>;
|
||||
}
|
||||
SFC.propTypes = {
|
||||
foo: PropTypes.number.isRequired,
|
||||
|
||||
Reference in New Issue
Block a user