Move hooks to core#2203
Conversation
62f660f to
2b0046d
Compare
porfirioribeiro
left a comment
There was a problem hiding this comment.
It seems nice!
With this change we align Preact more with React, that is good in one side because it can remove overhead and make overall code smaller for Preact+hooks usage.
In other hand, it brings hooks logic into core, that might not be used in some cases
This should be close to a noop (maybe 50-100B at max) since when unused that whole file can be tree-shaken |
Ohh yeah, that's great then! |
Before:
Total: 4520B
After:
Total: 4479B
After (useDebug and useImperative to /hooks):
Total: 4480B