我在mapstatetoprops
函数中有此功能:
const mapStateToProps = ({
currencies: {
charge: {
amount,
recurring: { amount },
},
},
})
因此,当我通过此操作时,我收到了短绒棉的错误消息:
Argument name clash in strict mode
显然amount
被声明了两次
有什么想法可以做到吗?
我以为我可以做:amount: someOtherValue
,但还是失败了