60
rated 0 times
[
63]
[
3]
/ answers: 1 / hits: 26832
/ 7 Years ago, tue, february 14, 2017, 12:00:00
I have the following code:
Enabled = (id) => {
let removal = null;
if (!this.props.disabled) {
removal = (
<span
className=chipRemove
onClick={() => this.onDelete(id)}
>
x
</span>)
;
}
return removal;
}
it works well, but linter is giving me:
jsx-a11y/no-static-element-interactions
How can I solve this error (according to jsx-a11y
)?
More From » reactjs