Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
lerpapoo
· 4y ago · 0 comments
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
Comments
[–]
mosdl
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
OP
4y ago
yea…okay lol