Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
devit
· 8y ago · 0 comments
Why aren't these functions methods on "this" instead of magic freestanding functions?
Comments
[–]
dceddia
8y ago
Hooks only work in function components, so there's no "this" (at least, not one that React owns...).
[–]
devit
OP
8y ago
Couldn't it just bind "this" to whatever object it uses to store component data?