![](/img/trans.png)
[英]How to deal with Unexpected use of comma operator no-sequences EsLINT warning
[英]Javascript Unexpected use of comma operator no-sequences warning
我有一個反應庫,它會引發以下警告。
Unexpected use of comma operator no-sequences
它表示警告發生在(_react.Component)參數之后的第 5 行。
出口。默認= function(_ref){
返回 function () {
var _class, _temp2; return _temp2 = _class = function () { }(_react.Component), _class?.displayName = 'Resizable()', _temp2;
}; }
我簡化了方法。 它實際上很長 function。
我該如何解決警告? 什么是正確的語法?
將<div>
標簽返回給渲染的組件,例如;
const App=()=>{ return(<div>
<Header/> <Body/>
</div>
); }
ReactDom.render(<App/>,document.getElementByid("root));
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.