1、Warning: validateDOMNesting(...): Whitespace text nodes cannot appear as a child of . Make sure you don't have any extra whitespace between tags on each line of your source code.


<tbody>
	{arr? arr.map((obj,Index,arr) => 
		<tr key={Index.toString()}>
			<td>{arr[Index].Index+1}</td>			
			<td></td>
			<td></td>
		</tr>
	): ''}
</tbody>

应改为:


<tbody>
	{arr? arr.map((obj,Index,arr) => 
		<tr key={Index.toString()}>
			<td>{arr[Index].Index+1}</td>			
			<td></td>
			<td></td>
		</tr>
	): <tr></tr>}
</tbody>

相关文章:

  • 2021-11-28
  • 2021-10-30
  • 2021-12-26
  • 2021-11-26
  • 2021-09-15
  • 2021-08-01
  • 2021-10-02
猜你喜欢
  • 2021-11-21
  • 2021-08-02
  • 2021-09-15
  • 2021-07-17
  • 2021-10-03
  • 2021-12-30
相关资源
相似解决方案