News for hackers. Stuff that matters.
Re:A guide to useEffect in React by sorahn on Monday March 11, 2019 @04:08AM (#19357397)
It only relies on that order between renders. It’s really a non issue.

I just spend the last month building a new chunk of our app in hooks to try them out, and it’s really nice to be able to wrap up shared stateful logic without HoCs.

A bunch of the HoCs in this app take a “propKey” param, because the HoCs are all stacked on top of each other, and prop collisions happened frequently.

Also, it’s a gigantic pain to use TypeScript and “compose”.

Re:A guide to useEffect in React by williamdclt on Monday March 11, 2019 @04:37AM (#19357493)
it’s really nice to be able to wrap up shared stateful logic without HoCs

agreed. I loved HOCs for the composibility, abused them and very rarely encountered prop collision, but TS (or Flow) made them a massive pain