Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mosdl
· 4y ago · 0 comments
Why the need for hooks for preact - hooks are the worst part of the react system. They are not necessary at all.
Comments
[–]
lerpapoo
4y ago
preact has worse performance than react at the expense of size and hooks are basically on the only reason I’m still using react. Without hooks I would be forced to create react component classes instead of simple functions… they are very very handy
[–]
mosdl
OP
4y ago
Functions are nice for simple components, but any non-simple component becomes unreadable with hooks, classes are easier to read/reuse and debug.
[–]
lerpapoo
4y ago
yea…okay lol