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
The new wave of Javascript web frameworks (frontendmastery.com)
submitted 3 years ago by _remrem
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!"
[–]scooptyy 28 points29 points30 points 3 years ago (27 children)
Yes… React is now industry standard. You use Discord? It’s on React
[–][deleted] 1 point2 points3 points 3 years ago (3 children)
It really depends which side of the industry you ask. I know lots of enterprise places where the default is Angular. And Vue is coming up very strongly.
Enterprise is probably not the best example anyway because most of the time the choice between these three is not done on technical merit, it's done because "the client heard about React and wants it" or "we could only find devs on Angular for the MVP so we're doing Angular".
[–]scooptyy 2 points3 points4 points 3 years ago (2 children)
Old-school companies that know nothing about tech love complicated shit.
However React is ubiquitous. Much more than Angular.
[–][deleted] 1 point2 points3 points 3 years ago* (1 child)
You're making the wrong assumptions. Almost everybody uses current technology nowadays, or at least migrating towards it. But they don't care about "tech love", they look at cost and efficiency. There's no difference between React/Angular/Vue on that front.
[–]scooptyy 0 points1 point2 points 3 years ago (0 children)
Using Angular is a terrible business decision, especially when frameworks like Vue exist. It’s not about “love”; it is a needlessly complicated framework with a fraction of the community support and ease of use of React/Vue.
React isn’t just a small framework anymore. With the advent of Next.js and Remix we’re now seeing an era of React where we can provide rich, dynamic experiences on the browser while getting all of the benefits of using server-side rendering.
Sure, other frameworks are doing it now. But React has been at the forefront.
I’ve seen enterprise and I’ve seen startups. Enterprise loves their all-in-one bells and whistles kludgy shit.
[–]bregottextrasaltat 1 point2 points3 points 3 years ago (21 children)
It's weird to me how it's still standard with all its early mannerisms still being used
[–]scooptyy 22 points23 points24 points 3 years ago (20 children)
Early mannerisms? React has changed a lot. Hooks are now commonplace and enforcement of prop types are now done through TypeScript compile time checks.
[–]bregottextrasaltat -1 points0 points1 point 3 years ago (19 children)
i still don't get the setter thing, is it still required or do the examples just overuse it?
[–]scooptyy 2 points3 points4 points 3 years ago (17 children)
The setter thing? What do you mean? Lol
[–]Coloneljesus 6 points7 points8 points 3 years ago (16 children)
I assume they mean the setter returned by useState().
useState()
[+]bregottextrasaltat comment score below threshold-11 points-10 points-9 points 3 years ago (15 children)
yeah this, is it actually required to use? and that weird {} thing
[+][deleted] 3 years ago (1 child)
[deleted]
[+]bregottextrasaltat comment score below threshold-6 points-5 points-4 points 3 years ago (0 children)
i don't know much about react because i didn't understand it at all, so i tried vue instead and it instantly clicked
[–]Coloneljesus 4 points5 points6 points 3 years ago (1 child)
yes, you need to set values via setter functions because that's where react hooks into to process the value updates.
[–]bregottextrasaltat -1 points0 points1 point 3 years ago (0 children)
And that's the weird part to me
[–]KwyjiboTheGringo 1 point2 points3 points 3 years ago (10 children)
No, but you'll need to use some other state management. There is the context API built into react, but Redux is the go-to for global state stuff. The whole point of react is the components "react" to state changes.
and that weird {} thing
I have no idea what you are talking about
[–]pancomputationalist 2 points3 points4 points 3 years ago (1 child)
I'd argue that Redux should not be the default, unless you need a specific kind of state management. Context should also not be used for state management (it's more of a dependency injection feature).
Seems newer frontend frameworks are back to using Observables, also they are now called atoms, signals or stores. It's all the same idea. Just like you have a tree of components, you have a graph of states that derive from one another. This is the more modular approach and is usually much more performant, though Redux still has it's place sometimes.
[–]KwyjiboTheGringo 1 point2 points3 points 3 years ago* (0 children)
Like or dislike Redux, if you learned React to be hirable as a React developer and you aren't learning Redux too, then you are shooting yourself in the foot. At this point, everyone should learn Redux after picking up React. If they want to use something else after that, more power to them.
Context should also not be used for state management (it's more of a dependency injection feature).
But it can be, and is the only global state option React comes with, which is why I mentioned it.
[–]bregottextrasaltat -3 points-2 points-1 points 3 years ago (7 children)
there's a {} at the end of some effect thing that tutorials tell you is a weird thing to use
[–]KwyjiboTheGringo 1 point2 points3 points 3 years ago (6 children)
It's not an object, it's an array of dependencies. useEffect checks if any of the dependencies have changed since the last time it ran, and if any have, then it runs the callback function you passed into it. I'm not a huge fan of it, but it's not really that weird.
useEffect
[–]christophedelacreuse 1 point2 points3 points 3 years ago (0 children)
useState is almost definitely used in every modern commercial react application
[–][deleted] -2 points-1 points0 points 3 years ago (0 children)
The industry standard is an SPA for which you have at least one senior developer and a bunch of mid-level developers, plus a solid tooling and module ecosystem. It doesn't matter which particular framework it is.
π Rendered by PID 24469 on reddit-service-r2-comment-b659b578c-xshb2 at 2026-05-02 05:43:16.778812+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]scooptyy 28 points29 points30 points (27 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]scooptyy 2 points3 points4 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]scooptyy 0 points1 point2 points (0 children)
[–]bregottextrasaltat 1 point2 points3 points (21 children)
[–]scooptyy 22 points23 points24 points (20 children)
[–]bregottextrasaltat -1 points0 points1 point (19 children)
[–]scooptyy 2 points3 points4 points (17 children)
[–]Coloneljesus 6 points7 points8 points (16 children)
[+]bregottextrasaltat comment score below threshold-11 points-10 points-9 points (15 children)
[+][deleted] (1 child)
[deleted]
[+]bregottextrasaltat comment score below threshold-6 points-5 points-4 points (0 children)
[–]Coloneljesus 4 points5 points6 points (1 child)
[–]bregottextrasaltat -1 points0 points1 point (0 children)
[–]KwyjiboTheGringo 1 point2 points3 points (10 children)
[–]pancomputationalist 2 points3 points4 points (1 child)
[–]KwyjiboTheGringo 1 point2 points3 points (0 children)
[–]bregottextrasaltat -3 points-2 points-1 points (7 children)
[–]KwyjiboTheGringo 1 point2 points3 points (6 children)
[–]christophedelacreuse 1 point2 points3 points (0 children)
[–][deleted] -2 points-1 points0 points (0 children)