Closed
Description
const MyComponent = props => (
<div onClick={() => props.toggle()}>{props.label}</div>
)
There's some debate about the performance of binding functions in render, but, regardless:
The prop-types
rule correctly identifies props.label
as missing in validation, but fails to identify the same for props.toggle
.