会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
chuckQu
博客园
首页
新随笔
联系
订阅
管理
2022年8月11日
React报错之Cannot assign to 'current' because it is a read-only property
摘要: 正文从这开始~ 总览 当我们用一个null值初始化一个ref,但在其类型中不包括null时,就会发生"Cannot assign to 'current' because it is a read-only property"错误。为了解决该错误,请在ref的类型中包含null。比如说,const
阅读全文
posted @ 2022-08-11 23:26 chuckQu
阅读(1239)
评论(2)
推荐(1)
编辑
公告