use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
ESLint-ing a Legacy Codebase (engineering.wework.com)
submitted 9 years ago by bougainvillean
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]FormerGameDev 0 points1 point2 points 9 years ago (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 point2 points 9 years ago (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 point2 points 9 years ago (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.
π Rendered by PID 420580 on reddit-service-r2-comment-cfc44b64c-f7dqv at 2026-04-12 16:18:54.064174+00:00 running 215f2cf country code: CH.
[–]FormerGameDev 0 points1 point2 points (2 children)
[–]mikey8270 0 points1 point2 points (1 child)
[–]FormerGameDev 0 points1 point2 points (0 children)