【发布时间】:2021-05-20 01:33:23
【问题描述】:
我正在尝试使用stopPropagation 对点击事件运行函数,它给了我如下错误:
Expected an assignment or function call and instead saw an expression @typescript-eslint/no-unused-expressions
<span className="selectedValue" onClick={(e) => { e.stopPropagation(); runSelect;}}>25 Miles</span>
【问题讨论】:
标签: reactjs typescript