Use callback in setState when referencing the previous state.eslintreact/no-access-state-in-setstate
Example           const actions = this.state.actions.filter((item) =&gt; item.key !== key2);       ...
Tags: eslint