mirror of
https://github.com/namibia/awesome-cheatsheets.git
synced 2024-12-19 00:42:03 +00:00
Merge pull request #40 from emyarod/master
Remove duplicate defaultProps explanation
This commit is contained in:
commit
6480be44b2
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