ijk icon indicating copy to clipboard operation
ijk copied to clipboard

Schema listed for Preact no longer valid.

Open kalebo opened this issue 3 years ago • 0 comments

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.

kalebo avatar Feb 17 '22 06:02 kalebo