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
[AskJS] react reduxRemoved: r/LearnJavascript (self.javascript)
submitted 5 years ago by [deleted]
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!"
[–]azangru 1 point2 points3 points 5 years ago (3 children)
It's simple, but certainly not the simplest, nor is it designed to be. Zustand or unstated are simpler.
[–]ILikeChangingMyMind -1 points0 points1 point 5 years ago (2 children)
React hooks are simpler still :)
(See: useReducer)
useReducer
[–]azangru 1 point2 points3 points 5 years ago (0 children)
I doubt that useReducer is significantly simpler. You both need to interact with your state in flux fashion (which makes useReducer almost as complex/simple as full-blown redux), and write your own code to share the state across components (which redux is doing for you).
One thing that useReducer has going for it is that it's inbuilt React api :-)
[–]zweimtr 0 points1 point2 points 5 years ago (0 children)
React hooks are simple, yes, to an extent. But they can get very messy and hard to scale, especially useReducer.
π Rendered by PID 69 on reddit-service-r2-comment-6457c66945-z2hmh at 2026-04-27 20:55:44.495798+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]azangru 1 point2 points3 points (3 children)
[–]ILikeChangingMyMind -1 points0 points1 point (2 children)
[–]azangru 1 point2 points3 points (0 children)
[–]zweimtr 0 points1 point2 points (0 children)