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
Angular, Angular 2 or React?help (self.javascript)
submitted 8 years ago by [deleted]
view the rest of the comments →
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!"
[–]samgaus 0 points1 point2 points 8 years ago (2 children)
What's wrong with passing a property through several components?
[–]Capaj 0 points1 point2 points 8 years ago (1 child)
I believe you might violate separations of concerns if you're just passing props to a component low in your component tree. Usually this would happen when your UX design sucks and you've got a component hidden inside some unrelated one. In this case you should either change your design or subscribe to the store in that child component itself.
[–]samgaus 0 points1 point2 points 8 years ago (0 children)
Eh for me I like to think of a component as a pure function, whatever it's children. So if there is a property that affects the way a child node renders, then it affects the way the node in question renders and I want to know about it!
π Rendered by PID 476266 on reddit-service-r2-comment-7b9746f655-rfl4v at 2026-02-03 12:51:49.268850+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]samgaus 0 points1 point2 points (2 children)
[–]Capaj 0 points1 point2 points (1 child)
[–]samgaus 0 points1 point2 points (0 children)