当前位置:网站首页>The left-hand side of an assignment expression may not be an optional property access. ts(2779)
The left-hand side of an assignment expression may not be an optional property access. ts(2779)
2022-07-07 12:28:00 【Zh afai】
background
Write ts and react ref when There are the following errors
It means iframeRef.current
May is empty , We cannot assign values directly like this , Then we just tell the editor iframeRef.current
It is OK to assign a value again
solve
- Use
!.
, This is justts
Type inference of , When runningiframeRef.curent
If there is no value, it will still be thrown wrong - Use condition judgment - recommend
边栏推荐
- SQL Lab (32~35) contains the principle understanding and precautions of wide byte injection (continuously updated later)
- 【玩转 RT-Thread】 RT-Thread Studio —— 按键控制电机正反转、蜂鸣器
- Completion report of communication software development and Application
- Tutorial on principles and applications of database system (009) -- conceptual model and data model
- 2022 年第八届“认证杯”中国高校风险管理与控制能力挑战赛
- Learning and using vscode
- 30. Few-shot Named Entity Recognition with Self-describing Networks 阅读笔记
- 利用栈来实现二进制转化为十进制
- 平安证券手机行开户安全吗?
- wallys/Qualcomm IPQ8072A networking SBC supports dual 10GbE, WiFi 6
猜你喜欢
<No. 9> 1805. 字符串中不同整数的数目 (简单)
Unity 贴图自动匹配材质工具 贴图自动添加到材质球工具 材质球匹配贴图工具 Substance Painter制作的贴图自动匹配材质球工具
Review and arrangement of HCIA
[pytorch practice] image description -- let neural network read pictures and tell stories
Tutorial on principles and applications of database system (009) -- conceptual model and data model
30. Few-shot Named Entity Recognition with Self-describing Networks 阅读笔记
wallys/Qualcomm IPQ8072A networking SBC supports dual 10GbE, WiFi 6
全球首堆“玲龙一号”反应堆厂房钢制安全壳上部筒体吊装成功
【玩转 RT-Thread】 RT-Thread Studio —— 按键控制电机正反转、蜂鸣器
112. Network security penetration test - [privilege promotion article 10] - [Windows 2003 lpk.ddl hijacking rights lifting & MSF local rights lifting]
随机推荐
盘点JS判断空对象的几大方法
Utiliser la pile pour convertir le binaire en décimal
顶级域名有哪些?是如何分类的?
千人规模互联网公司研发效能成功之路
File upload vulnerability - upload labs (1~2)
Inverted index of ES underlying principle
[play RT thread] RT thread Studio - key control motor forward and reverse rotation, buzzer
《通信软件开发与应用》课程结业报告
关于 Web Content-Security-Policy Directive 通过 meta 元素指定的一些测试用例
Up meta - Web3.0 world innovative meta universe financial agreement
Pule frog small 5D movie equipment | 5D movie dynamic movie experience hall | VR scenic area cinema equipment
Problem: the string and characters are typed successively, and the results conflict
Static comprehensive experiment
Upgrade from a tool to a solution, and the new site with praise points to new value
Completion report of communication software development and Application
浅谈估值模型 (二): PE指标II——PE Band
About sqli lab less-15 using or instead of and parsing
Sonar:Cognitive Complexity认知复杂度
SQL lab 11~20 summary (subsequent continuous update) contains the solution that Firefox can't catch local packages after 18 levels
VSCode的学习使用