preactjs/preact-compat

I got an error: 'h' must be in scope when using JSX

rafi16jan opened this issue · 2 comments

I got an error: 'h' must be in scope when using JSX

I'm manually tweaking react dependencies from a react template and got this. What should I do?

Sorry wrong repo. I should report this to just-boris/create-preact-app because I use his dependencies.

@rafi16jan Most likely the import for h is missing. Check that there is an import for h present:

import { h } from 'preact';