React-使用功能评估Prop值的错误
In the picture below, I'm trying to replace line 120 (which works when not commented) with line 121 so that I can add additional logic in the function on line 98.
However I am seeing error "Invalid value for prop value
"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您正在传递箭头功能,而不是一个值。应该是
You are passing an arrow function rather than a value. It should be
您的
getValue(1,2,3,4)
功能具有4个参数。但是您用6个参数称呼它。PS ...不要用图片上传代码。复制和粘贴并不困难。
Your
getValue(1,2,3,4)
function has 4 parameters. But you called it with 6 parameters.PS... do not upload your code with picture. copy and paste is not difficult.