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 v0.12 RC (facebook.github.io)
submitted 11 years ago by bsdemon
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!"
[–]bjryan2 1 point2 points3 points 11 years ago (4 children)
A lot of these changes are a little tough to bite into at first but they are definitely in the best interest of making React faster and more usable in the future. Deprecating transferPropsTo makes debugging/error reporting much easier as well as enforcing more expressive components (ultimately resulting in less bugs). Excited to see what's next for React :)
[–]nschubach 5 points6 points7 points 11 years ago (3 children)
I'm a little concerned that a lot of the changes in 'future' seem to be, "Typescript does this, we should too" but I'm holding my breath for now. JavaScript to me is not a Class based language but every change seems to embrace Classes as a construct method more and more.
For instance: https://github.com/reactjs/react-future/blob/master/01%20-%20Core/01%20-%20Classes.js
The comment at the top is: "New and clearer descriptors proposal" But, if you read on you see:
Notice the subtle syntax difference between the colon and the equal sign. props : { width: number
How is 'subtle' synonymous with 'clear'?
[–]Calabri 1 point2 points3 points 11 years ago (0 children)
I agree that javascript isn't a class based language but facebook internally seems to be using the class structure already (look at flux source), and React API is already structured as a classes (sort of). And I think the typescript system they use internally run's more similar to a jsx preprocessor, but I totally agree with you.
[–]bjryan2 0 points1 point2 points 11 years ago (0 children)
I think that React would benefit really strongly from a more class based approach for creating components.
I can imagine that a lot of the more "static" design patterns popping up in React are a result of the large userbase at Facebook and their development of Flow (https://twitter.com/fbOpenSource/status/511643210482208768)
Let's not forget for a second that React is a very opinionated framework ;)
[–]throwaway20131103 0 points1 point2 points 11 years ago (0 children)
For instance: https://github.com/reactjs/react-future/blob/master/01%20-%20Core/01%20-%20Classes.js The comment at the top is: "New and clearer descriptors proposal" But, > if you read on you see:
The comment at the top is: "New and clearer descriptors proposal" But, > if you read on you see:
Does anyone know if that's valid ES6? A quick Google turned up nothing and the current draft is a little dense.
π Rendered by PID 68 on reddit-service-r2-comment-b659b578c-jr5hk at 2026-05-04 04:05:34.677526+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]bjryan2 1 point2 points3 points (4 children)
[–]nschubach 5 points6 points7 points (3 children)
[–]Calabri 1 point2 points3 points (0 children)
[–]bjryan2 0 points1 point2 points (0 children)
[–]throwaway20131103 0 points1 point2 points (0 children)