reactjs - TypeError:无法读取未定义的属性(读取“工具提示”)
问题描述
我在我 的项目中使用 React:“^17.0.2”版本,打字稿:“^4.4.3”版本,材料设计:“^5.0.3”版本。我想在项目中添加工具提示时出现以下错误TypeError :
我的代码就像:
<Grid item xs={12} md={4} lg={5}>
<div className="contactSection">
<div className="title_wrapper">
<p>Contact us</p>
<div className="border" />
</div>
<ul className="contact_lists">
<li>
<div className="icon_wrapper">
<div className="circle" />
<IoLocationOutline className="icon" />
</div>
<Tooltip title="See on Google Map" placement="top">
<div className="contact_text">
<a href="https://g.page/hamro-technology-pvt--ltd-?share" target="_blank">
Kalanki, Kathmandu, Nepal
</a>
</div>
</Tooltip>
</li>
....
</ul>
</div>
</Grid>
这个问题怎么解决??
解决方案
推荐阅读
- java - 文件名中指定的逗号(,)使 curl 处理器无法发送请求
- reactjs - 更新时如何在firestore中设置方法后获取文档
- python - Python 检查:获取特定装饰器的参数
- prometheus - 如何仅为自定义命名空间发送 Prometheus 警报
- c++ - 自定义排序以意想不到的方式工作
- python - Python正则表达式检查字符问题,我做错了什么?
- javascript - Javascript - 动态获取行表的ID
- c# - 2 个 IntPtr 上的 C# XOR
- css - 如何使用 jsname 检查元素到 div 中?
- python - 使用更新的单元格引用复制引用不同工作表的公式