wedmaniacW
Denoโ€ข3y agoโ€ข
14 replies
wedmaniac

Preact hooks doesn't get executed!

im having a little problem, the hooks from preact doesn't seem to run, canst see any errors in the terminal and the dependency is imported. Would love to get help:)
import { useEffect } from "preact/hooks";

export default function MyPage() {
useEffect(()=> {
console.log("this message will not be executed:(")
}, []);
return (
blah blah blah
)
}
Was this page helpful?