1
1
mirror of https://github.com/namibia/awesome-cheatsheets.git synced 2024-06-01 12:20:48 +00:00

Merge pull request #40 from emyarod/master

Remove duplicate defaultProps explanation
This commit is contained in:
Julien Le Coupanec 2018-03-21 15:24:04 -07:00 committed by GitHub
commit 6480be44b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

5
frontend/react.js vendored
View File

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