How do I use "JSXInternal" type in deno fresh?

Viewed 19

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?

1 Answers
import type { JSX } from "preact";

function Hyper (Component: (props: PageProps) => JSX.Element): (props: PageProps) => JSX.Element {
  return (props: PageProps) => {
    return <Component {...props}/>
  }
}
Related