我正在使用React.js,并且Alt遇到问题。我的代码中缺少什么?与单引号和双引号相同。
26 | <div>
27 | <h1>{item.name}</h1>
> 28 | <img src={item.images.transparent} alt ""/>
| ^
29 | </div>
30 | );
31 | }
我的代码是:CODE
答案 0 :(得分:0)
应该是
alt=""
不是
alt ""