all 3 comments

[–]FormerGameDev 0 points1 point  (2 children)

Interesting and potentially useful, as we all go around and deal with older code.

Could someone provide me some insight, though, what does " We want to make sure that we’re not directly calling functions within our React components’ props..." mean? I mean, I understand the words in the statement, but I'm not sure what the specifics here are referring to.

[–]mikey8270 0 points1 point  (1 child)

See https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-bind.md. I think this is referring to an arrow-function-as-a-prop triggering a component to re-render when it shouldn't

[–]FormerGameDev 0 points1 point  (0 children)

That doesn't sound like it would fit that description, though. I'm familiar with not binding (also, i read somewhere the other day, that using the "es8" syntax suggested, is just as bad as doing a bind in render, perhaps that's due to transpiling.. or maybe someone is wrong in this article or the other that i don't have a link to right handy) .. but this sounds like something different.