-
Notifications
You must be signed in to change notification settings - Fork 649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTM doesn't work #354
Comments
I never tested |
Thanks for the clue! Looks like HTM really has problems with hooks. So, if get it right, this issue can be closed - Fresh doesn't relate to this. |
Actually, I think that issue gave me an idea of something you can try. Can you try import htm like this: |
Yes, it's working now!
Then I'll close issue. Solution is using same version of preact. |
I've created example project with
deno run -A -r https://fresh.deno.dev my-project
and tried to replace JSX with HTM. It renders fine but there is no interactivity. As I can see no JS related toCounter
is sending to browser (e.g. no related<source>
tag). I suppose it's a wrong behaviour.Here are my changes:
The text was updated successfully, but these errors were encountered: