|
|
|
|
|
by SinParadise
1017 days ago
|
|
Not useEffect specifically, but wiring something very stateful like a map library into the React rendering paradigm while keeping the state management in React via useState etc. can be very difficult to do so in a performant way. I recalling using a lot of useRef to manually tune when to re-render, and in an ideal world I shouldn't be this granular about it. You can certainly use one of the many React map wrapper libraries to lessen the pain, the pain is still very real, just dealt with by someone else. |
|
Hooks imo are great, as they are pretty explicit and low level.
Nowadays signals are the new kid on the block, though mobx and similar have existed since forever in react land, but they have their own crazy edge cases like reactive loops and implicit behavior.