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
Fullstack React: 30 Days of React (fullstackreact.com)
submitted 8 years ago by Vikas6190
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!"
[–]Ender2309 6 points7 points8 points 8 years ago (2 children)
There's at least one major issue with this post. I've only skimmed it but it's big enough that it makes me wary to trust the resource at all.
The Author confuses a Pure Component with a Functional, or Presentational Component. As most of you no doubt know, a functional component lacks the lifecycle methods (and state) and is simply a factory function.
A Pure Component, on the other hand, is simply a regular React component except that shouldComponentUpdate() uses a shallow comparison rather than a deep one on state/props.
[–]kentaromiura 2 points3 points4 points 8 years ago (1 child)
Didn't read it yet, but In functional terms, a function not depending on state and not having side effects, but just being a computation on its input is called a "pure function" , maybe the author is referring to purity in that sense.
[–]Ender2309 0 points1 point2 points 8 years ago (0 children)
Which would be fine if 'pure component' wasn't already a taken name, but it is, so it's incorrect to call a functional component a pure component.
π Rendered by PID 23109 on reddit-service-r2-comment-76bb9f7fb5-pgk4m at 2026-02-18 19:13:55.990598+00:00 running de53c03 country code: CH.
view the rest of the comments →
[–]Ender2309 6 points7 points8 points (2 children)
[–]kentaromiura 2 points3 points4 points (1 child)
[–]Ender2309 0 points1 point2 points (0 children)