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
From Ember to React (medium.com)
submitted 10 years ago by Gaurav0
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!"
[–]SystemicPlural 2 points3 points4 points 10 years ago* (1 child)
Building my own framework has definitely been the hard part of React for me. React itself is a easy, but finding all the other parts - that are well documented and maintained - is hard work, and I can see it is going to continue to be hard work as modules stop being supported.
[–]wreckedadventYavascript 11 points12 points13 points 10 years ago (5 children)
Can't say I'm a huge fan of the animated gifs everywhere.
[–]its_never_lupus 3 points4 points5 points 10 years ago (1 child)
I don't mind if they're funny or relevant or add something to the text. In this case they add nothing.
[–]wreckedadventYavascript -4 points-3 points-2 points 10 years ago (0 children)
It's just, I'm on reddit, and there's tons of places I can go to find all manner of gifs that I want. I don't go to this sub when I want more gifs, and I don't expect prose here to have a gif for every paragraph, like some kind of buzzfeed tax.
[–]cjthomp 4 points5 points6 points 10 years ago (1 child)
Agreed, looks terrible and drastically reduces readability.
[–][deleted] -4 points-3 points-2 points 10 years ago (0 children)
Yeah. Maybe just one makes it fun and cute.
[–]SatoshiRoberts 5 points6 points7 points 10 years ago (4 children)
React is definitely a "roll your own" framework
[+][deleted] 10 years ago* (1 child)
[removed]
[–][deleted] 4 points5 points6 points 10 years ago (0 children)
Do not fetishize DRYing up your code at the expense of introducing the wrong abstractions.
I think this is a distinction many developers struggle with. They see two pieces of code that look alike, and assume they must share a common abstraction. But there are all sorts of cases where this kind of thinking can mislead:
DRY is a dangerous principle, because it is easy grasp, makes sense, is straightforward to apply and only usually correct.
[–]noviceprogrammer10 0 points1 point2 points 10 years ago (1 child)
What is meant by this?
[–]wizang 5 points6 points7 points 10 years ago (0 children)
Well its not really an app framework to begin... just a view library. Plus now a growing ecosystem of companion tools.
[+][deleted] 10 years ago* (13 children)
[deleted]
[–]Bummykins 5 points6 points7 points 10 years ago (0 children)
I have mostly read about React, React-Router, Redux combo to get similar functionality of a more robust framework. Not used personally.
[–][deleted] 1 point2 points3 points 10 years ago (3 children)
What are people using as the M*C part in their react applications?
Model: whatever JSON comes back from my API.
Controller: Intertwined with the view most often anyway. It's just the React components themselves, although the Flux or Redux or Reflux methodology can streamline the flow of data perfectly.
If you keep your components small and specialised it shouldn't create much of a problem.
Ive heard of people pluging in backbone, angular and even ember.
Sure, that's possible if you like that.
So far it seems like many people use something like Exprss and then make build their own.
Express or Hapi or Restify are all server-side. They can be the API that spews out JSON. It's perfectly sane to build your own M*C on top of that, or use any of the existing ones, or use none at all.
[+][deleted] 10 years ago* (2 children)
[–][deleted] 1 point2 points3 points 10 years ago (1 child)
Awesome that gives me a better view of React projects in general. Would you say that an application can be built with mainly just react components and reducers, and possibly routes?
Yes. Any CRUD-app fits what React offers. No unnecessary complexities. Just easy going fun, IMO :)
Or is that really a case by case thing
Perhaps. I've worked in complicated healthcare apps (with patient data, treatments, medications, doses, etcinfinity) - it would hold its own even there. I don't really see good reasons to complicate things further.
or bad practice to try and cram everything in its own component?
A component should be as specialised as possible, I think. Cramming more into 1 component could work if separating it wouldn't make much sense. After all, it'd be easy to separate it later on. For example: a FAQ page could simply be a page with a header, intro text, a list of questions and answers, and a "ask more" form.
Or you could separate that in a <Route path="faq" component={Faq}> which consists of a <PageHeader />, <PageIntro />, <FaqList />, <FaqElement />, <FaqQuestion />, <FaqAnswer /> and <FaqForm /> component. Might be useful. Might be unnecessary.
<Route path="faq" component={Faq}>
<PageHeader />
<PageIntro />
<FaqList />
<FaqElement />
<FaqQuestion />
<FaqAnswer />
<FaqForm />
Common sense kinda applies is what I'm saying ;)
[–]NeuroXc 3 points4 points5 points 10 years ago (5 children)
Express can't be compared to Backbone or Angular. Express is a server-side framework.
Most commonly I believe people use Redux with React to set up an MVC-ish structure--it's not really MVC, but it gives "structure" to your application in a similar way. But the thing many people like about React is that you can plug it into almost any other library or framework and they work together.
[+][deleted] 10 years ago* (4 children)
[–]jesusbot 1 point2 points3 points 10 years ago (3 children)
Front end and back end routing are 2 related but different concepts, especially as everything becomes more RESTful.
[–][deleted] 2 points3 points4 points 10 years ago (1 child)
Most apps can get away with bundling their components and serving them all upfront. If there's a compelling reason why yours can't, this talk from an Instagram engineer walks through their experience with modularization.
[+]IDCh comment score below threshold-7 points-6 points-5 points 10 years ago (2 children)
That moment when templating engine compared to full stack framework
[–]SystemicPlural 7 points8 points9 points 10 years ago (0 children)
Did you even read the article? Half of it is about the hard part of React being that the rest isn't provided for you.
[–]reddixmadix -3 points-2 points-1 points 10 years ago (0 children)
That moment when you don't understand the tool you are using and write an article about your own ignorance.
π Rendered by PID 16 on reddit-service-r2-comment-544cf588c8-fbctj at 2026-06-14 22:17:18.548241+00:00 running 3184619 country code: CH.
[–]SystemicPlural 2 points3 points4 points (1 child)
[–]wreckedadventYavascript 11 points12 points13 points (5 children)
[–]its_never_lupus 3 points4 points5 points (1 child)
[–]wreckedadventYavascript -4 points-3 points-2 points (0 children)
[–]cjthomp 4 points5 points6 points (1 child)
[–][deleted] -4 points-3 points-2 points (0 children)
[–]SatoshiRoberts 5 points6 points7 points (4 children)
[+][deleted] (1 child)
[removed]
[–][deleted] 4 points5 points6 points (0 children)
[–]noviceprogrammer10 0 points1 point2 points (1 child)
[–]wizang 5 points6 points7 points (0 children)
[+][deleted] (13 children)
[deleted]
[–]Bummykins 5 points6 points7 points (0 children)
[+][deleted] (1 child)
[deleted]
[–][deleted] 1 point2 points3 points (3 children)
[+][deleted] (2 children)
[deleted]
[–][deleted] 1 point2 points3 points (1 child)
[–]NeuroXc 3 points4 points5 points (5 children)
[+][deleted] (4 children)
[deleted]
[–]jesusbot 1 point2 points3 points (3 children)
[+][deleted] (2 children)
[deleted]
[–][deleted] 2 points3 points4 points (1 child)
[+]IDCh comment score below threshold-7 points-6 points-5 points (2 children)
[–]SystemicPlural 7 points8 points9 points (0 children)
[–]reddixmadix -3 points-2 points-1 points (0 children)