当前位置:网站首页>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 justtsType inference of , When runningiframeRef.curentIf there is no value, it will still be thrown wrong
- Use condition judgment - recommend

边栏推荐
- SQL Lab (36~40) includes stack injection, MySQL_ real_ escape_ The difference between string and addslashes (continuous update after)
- 密码学系列之:在线证书状态协议OCSP详解
- Hi3516全系统类型烧录教程
- ps链接图层的使用方法和快捷键,ps图层链接怎么做的
- About sqli lab less-15 using or instead of and parsing
- 平安证券手机行开户安全吗?
- EPP+DIS学习之路(2)——Blink!闪烁!
- Pule frog small 5D movie equipment | 5D movie dynamic movie experience hall | VR scenic area cinema equipment
- Typescript interface inheritance
- Completion report of communication software development and Application
猜你喜欢

【玩转 RT-Thread】 RT-Thread Studio —— 按键控制电机正反转、蜂鸣器
![[neural network] convolutional neural network CNN [including Matlab source code 1932]](/img/65/cf9d0a3f46a581dc8f28de2e28779d.png)
[neural network] convolutional neural network CNN [including Matlab source code 1932]

<No. 8> 1816. 截断句子 (简单)

Sonar:cognitive complexity

SQL Lab (32~35) contains the principle understanding and precautions of wide byte injection (continuously updated later)

Unity map auto match material tool map auto add to shader tool shader match map tool map made by substance painter auto match shader tool

【统计学习方法】学习笔记——第五章:决策树

Common locking table processing methods in Oracle

Epp+dis learning road (2) -- blink! twinkle!

解密GD32 MCU产品家族,开发板该怎么选?
随机推荐
跨域问题解决方案
H3C HCl MPLS layer 2 dedicated line experiment
【统计学习方法】学习笔记——第五章:决策树
@What happens if bean and @component are used on the same class?
解决 Server returns invalid timezone. Go to ‘Advanced’ tab and set ‘serverTimezone’ property manually
"Series after reading" my God! It's so simple to understand throttling and anti shake~
Minimalist movie website
开发一个小程序商城需要多少钱?
Idea 2021 Chinese garbled code
Detailed explanation of debezium architecture of debezium synchronization
平安证券手机行开户安全吗?
ENSP MPLS layer 3 dedicated line
浅谈估值模型 (二): PE指标II——PE Band
The road to success in R & D efficiency of 1000 person Internet companies
【统计学习方法】学习笔记——支持向量机(上)
顶级域名有哪些?是如何分类的?
Hi3516 full system type burning tutorial
BGP actual network configuration
《通信软件开发与应用》课程结业报告
SQL blind injection (WEB penetration)