我是第一次try 用JSX构建一些代码.但是,当我试图使用for循环自动执行标记时,它给了我一个Eslint错误.
<table className="TableData">
let num= 9;
<thead>
<tr>
<th>Week</th>
for(let i=0; i <num; i++){
return <th> {i+1}</th>;
}
<th>Win</th>
<th>Lose</th>
</tr>
</thead>