I'm trying to create a HOC that returns a preact component, and I don't have access to the "JSXInternal" type, how can I access it?
I'm trying to create a HOC that returns a preact component, and I don't have access to the "JSXInternal" type, how can I access it?
import type { JSX } from "preact";
function Hyper (Component: (props: PageProps) => JSX.Element): (props: PageProps) => JSX.Element {
return (props: PageProps) => {
return <Component {...props}/>
}
}