Better HN
topnewbestaskshowjobs
Log inSign up

penguibird

3 karma · joined Jul 7, 2025 (1y ago) · 2 submissions

Submissions

comment 1y ago · link · parent

When I saw the setState in useEffect, I immediately knew why the person hates react. That's a horrible antipattern used by people who refuse to read the few articles about useEffect and when to use it.

comment 1y ago · link · parent

Context is pretty much DI, but it works with the component tree - I can wrap different subtrees in different providers. This is much more powerful than angular style dependency injection and there have been several times where I was really grateful for it.