JFYI The shape of vdom nodes has changed in Preact. See the following definition from their src/index.d.ts:
interface VNode<P = {}> {
type: ComponentType<P> | string;
props: P & { children: ComponentChildren };
. . .
}
For the size of this library though, it's easier just to vendor it directly into what ever project you want and add explicit call to Preact.createElement for the recursive base case. A similar fix for would make it work with React.
JFYI The shape of vdom nodes has changed in Preact. See the following definition from their
src/index.d.ts:For the size of this library though, it's easier just to vendor it directly into what ever project you want and add explicit call to
Preact.createElementfor the recursive base case. A similar fix for would make it work with React.