|
|
|
|
|
by twright
709 days ago
|
|
> "useEffect" [...] this function is absolutely not intuitive 100%. I've found `useEffect` is an effective foot-shotgun, even I still blast away some toes with it. What makes it some weird to me from the start (React 16.8, ~2019) is how they folded several, clearly named, lifecycle methods into this one callback. The motivation for this change [1] informs me that maybe I've just never worked on Facebook-scale front-ends or I've just forgotten the pain of explicitly having to write all those methods, but I rather liked their separation. [1]: https://legacy.reactjs.org/docs/hooks-intro.html#complex-com... |
|
It's night and day comparing that to our backend/backoffice written in Elixir.