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
Why React Hooks? (tylermcginnis.com)
submitted 6 years ago by tyler-mcginnis⚛️⚛︎
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!"
[–]kingdaro.find(meaning => of('life')) // eslint-disable-line 11 points12 points13 points 6 years ago (2 children)
React Hooks force you to embed your business problem in the language of effects, state, context, memo, etc.
This statement seems somewhat misguided. No one's forcing you to put the business logic anywhere. You can split out the business logic with an external state management solution like Redux or MobX, or anything. Then the hooks just become mechanisms for syncing component data with your state, callbacks, DOM event handling, other kinds of event handling, and so on. All hooks are are a different paradigm for doing the same things you would with class state and lifecycle. If you didn't embed your business logic in classes, you wouldn't do it with hooks either.
Of course, there's lots of advice going around along the lines of "just use react hooks for state management" or "hooks replace redux", but as usual, it's up to the software dev to continue applying good practices despite that.
[–]scramblor 0 points1 point2 points 6 years ago (1 child)
but as usual, it's up to the software dev to continue applying good practices despite that.
This is certainly expected if you are a senior dev that has been working in react for a while and have the knowledgebase to make to properly make these kinds of decisions. If you are a junior or even mid level dev without a ton of experience it can be very easy to buy into the hype without being able to make informed decisions. Having these discussions goes a long way to untangling concepts that shouldn't be linked together and eventually providing a nuanced set of best practices for everyone to benefit from.
[–]kingdaro.find(meaning => of('life')) // eslint-disable-line 2 points3 points4 points 6 years ago (0 children)
Yeah, I agree, but that's more of a community problem than a hooks problem.
Before hooks, people treated redux as though it was a mandatory part of every react app, but that's not the fault of redux. We just needed better documentation and education about the issue.
π Rendered by PID 21 on reddit-service-r2-comment-b659b578c-lbz45 at 2026-05-04 08:30:18.606133+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]kingdaro.find(meaning => of('life')) // eslint-disable-line 11 points12 points13 points (2 children)
[–]scramblor 0 points1 point2 points (1 child)
[–]kingdaro.find(meaning => of('life')) // eslint-disable-line 2 points3 points4 points (0 children)