Skip to content
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

Props destructuring assignment in stateless component #326

Closed
nathanmarks opened this issue Nov 22, 2015 · 0 comments
Closed

Props destructuring assignment in stateless component #326

nathanmarks opened this issue Nov 22, 2015 · 0 comments

Comments

@nathanmarks
Copy link

I've added a failing test here: master...nathanmarks:stateless-function-destructure

I have no experience with linters so I'm not sure whether covering this use case is an easy fix or not.

Here's what I expect to throw missing from props validation, but isn't:

var Hello = (props) => {
  const {name} = props;
  return <div>Hello {name}</div>;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant