[英]I am doing an react project and I have this error in my project which releted to google maps , please help me to solve this
google.maps.event.addDomListener() is deprecated, use the standard addEventListener() method instead: https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener The feature will continue to work and there is no plan to decommission it. google.maps.event.addDomListener() 已弃用,请改用标准的 addEventListener() 方法: https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener该功能将继续工作并且没有计划将其退役。
I had the same issue and I fixed it by using useEffect(() => {})
我遇到了同样的问题,我使用
useEffect(() => {})
修复了它
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.