Closed ananduremanan closed 5 months ago
My Mistake, The documentation is not clear..
I need to import import { useSignals } from "@preact/signals-react/runtime";
instead of import { useSignals } from "@preact/signals-react";
as in the documentation.
Hey, I'm new to signals, why this is not working in my react project set up with vite. Do I need to set up anything else?
But, the code
is working fine!!!