1
1
mirror of https://github.com/namibia/awesome-cheatsheets.git synced 2024-11-21 12:25:14 +00:00

Remove duplicate defaultProps explanation

This commit is contained in:
emyarod 2018-03-21 18:00:50 -04:00
parent 6bfa05d8ae
commit e27ba13f0a

5
frontend/react.js vendored
View File

@ -337,8 +337,3 @@ MyComponent.propTypes = {
} }
}) })
}; };
// Specifies the default values for props:
MyComponent.defaultProps = {
name: 'Stranger'
};