im new to react and try to build some code in JSX. but when i trying to automate the tags using for loop it give me a Eslint error.
<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>