React: Warn when component has PropTypes rather than propTypes

Created on 10 Nov 2017  路  8Comments  路  Source: facebook/react

See https://github.com/reactjs/reactjs.org/issues/268#issuecomment-343402728.

Feels like an easy mistake to make, and easy for us to detect.

starter Enhancement good first issue (taken)

Most helpful comment

hey can I take this ?

All 8 comments

hey can I take this ?

@M-ZubairAhmed Just do it.

could you please guide me to where to start with this issue? thank you

Search the code for where we read .propTypes and add the check there.

got it.

is this done?

It's taken by @M-ZubairAhmed.

@gaearon Should this be closed now?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

trusktr picture trusktr  路  3Comments

varghesep picture varghesep  路  3Comments

zpao picture zpao  路  3Comments

jimfb picture jimfb  路  3Comments

huxiaoqi567 picture huxiaoqi567  路  3Comments