top | item 31253582

(no title)

daok | 3 years ago

The rendering part resonate with me. I've tried in some side projects SolidJS framework and I really enjoy that the rendering of each component occurs once! Easier to not fall into some traps that React has.

discuss

order

tentacleuno|3 years ago

> Easier to not fall into some traps that React has.

Honestly once you get used to it, it becomes second nature... For me at least.

One piece of advice I would give is to not try to ram the hooks use-case into things. It becomes especially annoying when you're dealing with asynchronous values, where you need to deal with 'null' and friends. Sometimes some imperative code in useEffect is simpler to read and easier to maintain; it's fine to step out of the paradigm for some things.