DEV Community

Discussion on: `onClick` listener to be a function, instead got a value of `object` type.

zorge1988 profile image
Dima Bondarenko

Error says by itself. You should provide on click a function instead of object. In your cas get rid of button and style link as button or delete link and move logic from link to the onclick