We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It would warn on this:
var SomeThing = props => ( <Foo bar={props.fizz} baz={props.buzz} /> );
Suggesting that this is a more expressive syntax:
var SomeThing = ({fizz, buzz}) => ( <Foo bar={fizz} baz={buzz} /> );
An exception where props would be ok is if it's just being passed wholesale to an inner component via spread operator. This would be consider valid:
var SomeThing = props => ( <Wrapper> <Foo someDefault="blah" {...props} /> </Wrapper> )
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
It would warn on this:
Suggesting that this is a more expressive syntax:
An exception where props would be ok is if it's just being passed wholesale to an inner component via spread operator. This would be consider valid:
The text was updated successfully, but these errors were encountered: