Failed prop type: Invalid prop `disabled` of type `string` supplied to `Input`, expected `boolean`.

这类警告,我的解决其实就是Input中的disabled赋值有问题,不能直接赋值true,需要通过变量来赋值:

const disabled=true;
<Input disabled={disabled} />

猜你喜欢

转载自blog.csdn.net/weixin_43734184/article/details/99944919
今日推荐