Open ahtee opened 5 years ago
As I know, propTypes in component class is a public property, so it is camelCase, PropType as type-checker is a class and type is a method, which makes all necessary type checks in general, so you probably should configure your ESLint settings.
https://reactjs.org/docs/typechecking-with-proptypes.html
When importing the proptypes library, eslint warns you that you should be using the camelCase format of
propTypes
and not use PascalCasePropTypes
.Other pages that may need updating: https://reactjs.org/docs/static-type-checking.html https://reactjs.org/docs/legacy-context.html#how-to-use-context
:)