Uncaught TypeError: onCheckedClicked is not a function

Viewed 21

I get this error message when I try to call onclick with conditional rendering. I have one functional component for a Task and based on the status, one of the functions should fire. enter image description here

1 Answers

You need to invoke the function, isPending() instead of isPending on your div.

Related