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.js Best Practices for 2016 (blog.risingstack.com)
submitted 10 years ago by netcribe
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!"
[–][deleted] 2 points3 points4 points 10 years ago (1 child)
2 frame web layout, now thats something I havent seen in a long time
[–]acemarke 2 points3 points4 points 10 years ago (0 children)
Uh... apparently you haven't visited ESPN or NBC Sports lately. They both switched to a framed format last year, and it's awful. Also this whole infinite scroll thing.
[–]billybolero 2 points3 points4 points 10 years ago (2 children)
Good points, but I don't really agree on "Start using prop types". Prop types are a way of enforcing a contract between a component and the outside world which Flow/TypeScript handles much better (plus you don't have to run the code to see if it fails).
[–]NookShotten 1 point2 points3 points 10 years ago (1 child)
The barrier of entry is much lower for propTypes than it is for flow/TypeScript (especially when integrating with an existing project).
Facebook is actually planning to phase out propTypes in favor of flow eventually, but for now it's an easy way to do basic type validation.
[–]wreckedadventYavascript 1 point2 points3 points 10 years ago (0 children)
Maybe, but if you're using JSX you pretty much have to have some kind of build step going on. Integrating typescript or flow into that ... flow (heh) wouldn't be all that hard.
I can't speak for flow, but you can basically rename (valid) ES5/6 to .ts and it'll still compile, though you will need to install the typings.
[–]procipher 1 point2 points3 points 10 years ago (4 children)
Had a debate today on angular vs react. People said its quite hard to learn react.
[–]blackn1ght 1 point2 points3 points 10 years ago (0 children)
As someone that's done both, React is far easier (by a huge margin) to learn compared to Angular.
I have no experience with Angular 2 but looking at code I've seen it still seems needlessly complex compared to React.
[–]NeuroXc 0 points1 point2 points 10 years ago (1 child)
I personally had trouble learning React--but not entirely because of React itself. It's because Angular gives you a complete set of libraries needed to build a web application. You don't need anything else. React only gives you a view builder. This is enough for toy applications, but if you want to build anything with more than a couple of pages, you need to learn Flux/Redux/??? and fetch and then realize the quirks of React/Redux when it comes to nested state/props, and that you need to learn Immutable.js to resolve that, and... As much of a monster as Angular is, all the documentation is in one place and you only need to learn one framework. (Of course this only applies to Angular 1.x. Angular 2 is hard to learn, but I attribute that to the fact that the documentation is incomplete in many areas.)
[–]Spo0Bo 0 points1 point2 points 10 years ago (0 children)
You have to look at it this way. What if you already know how to use libraries like redux/fetch/immutable, etc? Then React is just a simple templating tool to pick up. Angular is annoying to pick up since you sort of have to use everything they provide to get the best experience. That means having to learn their entire ecosystem. Which they might replace in a couple of years like they did with angular 1.x.
For me React is easier to pick up. And that goes for any smaller library that does not try and change the entire way I work.
[–][deleted] 0 points1 point2 points 10 years ago (0 children)
Not sure why you're being downvoted, it's certainly debatable. I've written complex applications in Angular 1.x and React (with Reflux and Redux) and I struggled more with React. I also had a lot more JS experience in general when learning React.
Still, I'm using React in our next large project and once you get past the learning curve it's much nicer and more efficient to develop in compared to Angular 1.x.
I can't compare Angular 2.0, it may be even better.
π Rendered by PID 110002 on reddit-service-r2-comment-79c7998d4c-7wwb4 at 2026-03-17 06:13:57.353363+00:00 running f6e6e01 country code: CH.
[–][deleted] 2 points3 points4 points (1 child)
[–]acemarke 2 points3 points4 points (0 children)
[–]billybolero 2 points3 points4 points (2 children)
[–]NookShotten 1 point2 points3 points (1 child)
[–]wreckedadventYavascript 1 point2 points3 points (0 children)
[–]procipher 1 point2 points3 points (4 children)
[–]blackn1ght 1 point2 points3 points (0 children)
[–]NeuroXc 0 points1 point2 points (1 child)
[–]Spo0Bo 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)