mirror of
https://github.com/LeCoupa/awesome-cheatsheets.git
synced 2026-10-29 00:04:06 -07:00
Remove duplicate defaultProps explanation
This commit is contained in:
1 parent
6bfa05d8ae
commit
e27ba13f0a
1 file changed
-5
Vendored
-5
@@ -337,8 +337,3 @@ MyComponent.propTypes = {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
// Specifies the default values for props:
|
|
||||||
MyComponent.defaultProps = {
|
|
||||||
name: 'Stranger'
|
|
||||||
};
|
|
||||||
Reference in new issue
Block a user