preact
preact copied to clipboard
[ts] components can return ComponentChildren
Previously FunctionComponent was only typed as returning VNode | null, but Preact supports returning Arrays as well as any VDOM text primitive (boolean, etc). Class component render methods were typed as returning ComponentChild, which doesn't reflect the fact that this method can also return Arrays.
Looks like this breaks JSX types.