Closed
Description
We've recently started to get rid of our usage of arrow functions in component props for similar reasons to that mentioned here. We went ahead and set:
'react/jsx-no-bind': ['error', {
allowArrowFunctions: false,
allowBind: false,
}]
but realized we were still able to get away with using something like:
const someFunc = () => onClickHandler(userId)
<SomeComponent onClick={someFunc} />
So we didn't fix the problem, we just accidentally tricked it. Is this expected behavior or is this a bug?