Closed keichinger closed 4 years ago
With Preact 8.4.0 (see PR https://github.com/developit/preact/pull/1249) we should no switch over to AnyComponent instead of ComponentFactory<T> in order to fix compatibility.
AnyComponent
ComponentFactory<T>
Pretty sure that using ComponentFactory<T> was never intended to be used outside of Preact itself.
As we saw this is not correct – as h() still (correctly) expects a ComponentFactory.
h()
ComponentFactory
With Preact 8.4.0 (see PR https://github.com/developit/preact/pull/1249) we should no switch over to
AnyComponent
instead ofComponentFactory<T>
in order to fix compatibility.Pretty sure that using
ComponentFactory<T>
was never intended to be used outside of Preact itself.