mirror of
https://github.com/namibia/awesome-cheatsheets.git
synced 2024-12-21 09:39:04 +00:00
Remove duplicate defaultProps explanation
This commit is contained in:
parent
6bfa05d8ae
commit
e27ba13f0a
5
frontend/react.js
vendored
5
frontend/react.js
vendored
@ -337,8 +337,3 @@ MyComponent.propTypes = {
|
||||
}
|
||||
})
|
||||
};
|
||||
|
||||
// Specifies the default values for props:
|
||||
MyComponent.defaultProps = {
|
||||
name: 'Stranger'
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user