Adding h as the pragma to the base tsconfigfile allows typescript to find and use Preact's JSX type definitons instead of the nonexistent React bindings.
Adding it to Jest's babel configuration prevents it from mistakenly stripping the import of h as unused when reading a TSX file during testing.
Adding
h
as the pragma to the base tsconfigfile allows typescript to find and use Preact's JSX type definitons instead of the nonexistent React bindings.Adding it to Jest's babel configuration prevents it from mistakenly stripping the import of
h
as unused when reading a TSX file during testing.