I’m trying to use Preact with Hugo v0.79.0. I’ve got everything compiling, but at runtime the error b/c I cannot figure out how to send the jsxFactory: 'h' flag to the compiler. It is trying to call React.createElement.
This is the error
Uncaught ReferenceError: React is not defined
I’ve tried adding a tsconfig.json to the project root. I’ve also tried messing with the jsconfig.json, but then found that the jsx props are not supported.