DEV Community

Menna Hassan
Menna Hassan

Posted on

how to solve this problem

Warning: Received false for a non-boolean attribute click.

If you want to write it to the DOM, pass a string instead: click="false" or click={value.toString()}.

If you used to conditionally omit it with click={condition && value}, pass click={condition ? value : undefined} instead.

Top comments (1)

Collapse
 
hayley_grace profile image
Hayley Grace

It’s telling you right there in the error message. Find where you are setting a click attribute with false and make it a string instead by putting it in quotes