Lol remember render props? What were we thinking
-
-
Replying to @acdlite
Well, the only thing we saw coming from you guys was higher-order components, so... we kinda had to improvise :P
7 replies 0 retweets 84 likes -
I still believe removing mixins was a net negative on dealing with complexity in React.
5 replies 0 retweets 18 likes -
Replying to @ryanflorence @acdlite
Agree. What's kinda funny is that people are a LOT more excited about hooks than they were upset about losing mixins. But they're essentially the same thing.
3 replies 0 retweets 12 likes -
IMO Hooks are a lot better.
2 replies 0 retweets 18 likes -
Of course. But it would have been way better to go: mixins -> hooks. Not mixins -> [Redux Middleware? | HOCs | Render Props | ??? ] -> hooks.
3 replies 0 retweets 21 likes -
Unclear if
@sebmarkbage would have come up with Hooks when he did if we hadn’t descended into render prop hell first. The jump from mixins to Hooks is not super obvious. Like if you ripped a chapter out of a calculus textbook Also those other patterns are still useful. E.g. memo4 replies 1 retweet 17 likes -
Replying to @acdlite @ryanflorence and
I have an idea for a talk that I want to give this year about the journey from mixins to hooks. I want to draw some parallels with history. Mixins were the Roman empire, HOCs + render props were the middle ages, hooks are the renaissance. Or maybe that's just weird...
4 replies 1 retweet 16 likes
Was the Spanish Inquisition the transition from createClass to classes?
-
-
Something like that ;) I was also thinking about possibly comparing the transition to the story of the exodus in the Bible. Early React was the deliverance from slavery in Egypt, HOCs + render props were the 40 years wandering in the wilderness, and hooks are the promised land.
0 replies 0 retweets 4 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 