My DaisyUI button is not firing onClick function
I was trying to make a button which add a product in my cart. But the button is sometimes firing the onClick or sometimes it doesn't I can't understand the exact reason
Here's my code:
5 Replies
Try putting a console.log inside the onClick and check the log is there after clicking.
sometimes works or sometimes doesnt
Same for the dispatch
Can you show me the whole component?
okay
Pastebin
"use client";import { useDispatch, useSelector } from "react-redux"...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.