Re:React I love you, but you're bringing me down
by H1Supreme on Tuesday September 20, 2022 @01:44PM
(#32915181)
Exactly! If the Javascript implementation was better, React probably never would have had to come up with Hooks in the first place.
[ Parent
| on HN ]
Re:React I love you, but you're bringing me down
by imbnwa on Tuesday September 20, 2022 @03:01PM
(#32916316)
You can solve the problem Hooks purported to solve in plain, idiomatic JavaScript with classes[0]
[0]https://raganwald.com/2016/07/20/prefer-composition-to-inher...