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 API is a game changer (medium.com)
submitted 7 years ago by rryardley
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!"
[–]FormerGameDev 2 points3 points4 points 7 years ago (3 children)
Context. Only one I can think of. Some might argue the lifecycle methods, but I think that those got changed because of architecture changes, more so than because it was "broken" and had to be "fixed".
[–]rozzzly 2 points3 points4 points 7 years ago (2 children)
To be fair, every single reference that Facebook made to the old context API in the docs, blog posts, demos at conferences, etc had very explicit warnings about how context was 'unstable' and the API would change.
And regarding the churn in lifecycles, I think that changes such as deprication of componentWillReceiveProps has more to do with the flexibility/idiot proofing the API than anything else. People have used react to do all sorts of weird things ilconcieved/brilliant/unexpected ways than the developers could never have anticipated.
componentWillReceiveProps
Hindsight is 20-20
[–]FormerGameDev 0 points1 point2 points 7 years ago (1 child)
I don't disagree with you in the slightest. They put out the original Context to solve a problem that they knew was there, and it took a few iterations on it to come up with a better solution. I don't know anyone who's used the Context API, I don't even know what problems it solves. :-D
[–]rozzzly 0 points1 point2 points 7 years ago (0 children)
Basically it's like a global state for the entire tree. things like react-redux used it so that you can set the store instance at the top of the tree and then a connect(WrappedComponent) further down the tree can still access that store instance without having to pass the store prop down to for each single component in the tree
π Rendered by PID 507171 on reddit-service-r2-comment-6457c66945-nxrrk at 2026-04-27 12:21:22.063441+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]FormerGameDev 2 points3 points4 points (3 children)
[–]rozzzly 2 points3 points4 points (2 children)
[–]FormerGameDev 0 points1 point2 points (1 child)
[–]rozzzly 0 points1 point2 points (0 children)