Open
Description
I've read the release notes for 10.0.0-alpha.0 (https://github.com/developit/preact/releases/tag/10.0.0-alpha.0) where you say that
preact/compat […] still has both named and a default export to remain compatible with react
I absolutely get that, but some of the functions in compat can actually be useful on their own! Yesterday, I wanted to use memo
, but it more than doubled my bundle size because now I was importing all of compat. (I then copied just memo
into my codebase, but I don't think that's necessarily the best way to go about this. :D)
Do you think there may be value in providing some of the functions on their own? Maybe something like
import { memo } from 'preact/utils'
On first look, these functions could be especially useful on their own:
- Portal
- PureComponent
- memo