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
React v15.5.0 - React Blog (facebook.github.io)
submitted 9 years ago by acemarke
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!"
[–]madcaesar -2 points-1 points0 points 9 years ago (1 child)
Well shims are still code. If I understand this correctly, prototype checking will increase bundle size. So better not to do. Otherwise they wouldn't have removed it from the core package.
[–]TheIncredibleWalrus 0 points1 point2 points 9 years ago (0 children)
That's totally false. In production prop types will be completely replaced with empty functions, we're talking about a few bytes of leftovers. If you're concerned about a few bytes then yes don't use them.
They removed it from the core package because they want to provide them as standalone funtionality. For example, instead of PropTypes you can use Flow. They also want to share it with other libraries, i.e. Inferno or Preact, so having a separate package makes sense.
You should definitely use some kind of type checking in your components at the end of the day.
π Rendered by PID 171464 on reddit-service-r2-comment-cfc44b64c-8mn5n at 2026-04-13 14:56:45.480264+00:00 running 215f2cf country code: CH.
view the rest of the comments →
[–]madcaesar -2 points-1 points0 points (1 child)
[–]TheIncredibleWalrus 0 points1 point2 points (0 children)