Skip to content

PropType validation for stateless function components isn't working from 3.6.0 release #268

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
trevordmiller opened this issue Oct 21, 2015 · 1 comment

Comments

@trevordmiller
Copy link

PropType validation for stateless function components isn't working from 3.6.0 release - example below. I'm really looking forward to this feature, thank you for all your hard work.

proptype-validation-stateless-components

@ghost
Copy link

ghost commented Oct 29, 2015

I'm also having a prop-type check problem in my stateless functions.
In my case when I have a function with a implicit return there's no warning for missing propTypes.
For example:

// no react/prop-types warning in this case
const Annotation = props => (
  <div>
    {props.text}
  </div>
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants