我有这个组件:import { useSelector, useDispatch } from 'react-redux';
import inputActioncustom React Hook function.React component names must start with an uppercase letter react-hooks/rules
我试图使用React在DOM中加载各种图像。我的想法是将数据库中的所有图像加载到同一个div中,所以我尝试使用for循环调用react组件,该组件为图像标记呈现标记,但是当循环结束时,DOM中显示的唯一图像是最后一个。有没有办法用React来做这件事?={this.props.ruta}></img>
<a hre