4 ms·Why aren't these functions methods on "this" instead of magic freestanding functions?by devit 8y agoWhy aren't these functions methods on "this" instead of magic freestanding functions?dceddia 8y agoHooks only work in function components, so there's no "this" (at least, not one that React owns...).devit 8y agoCouldn't it just bind "this" to whatever object it uses to store component data?