|
|
|
|
|
by eyelidlessness
2017 days ago
|
|
> > The effectful code shouldn't even be there. It should live separately from the render / view code > If that's your preference React is probably the wrong tool to begin with. That’s... a strange take, considering that’s how almost everyone wrote React UIs before hooks. |
|
I feel like the unspoken difference in this thread is between people who have IO/business in their view code, and people whose taste is to strongly separate them, leaving component state for strict view modeling like animation timers, etc. I had this difference with my former tech lead.