Becklyn / mojave

A library of commonly used JavaScript tools and helpers by Becklyn
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

Use `AnyComponent` instead of `ComponentFactory` in `mountJsx #166

Closed keichinger closed 4 years ago

keichinger commented 5 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.

Pretty sure that using ComponentFactory<T> was never intended to be used outside of Preact itself.

apfelbox commented 5 years ago

As we saw this is not correct – as h() still (correctly) expects a ComponentFactory.