为什么我的代码不能工作?只显示一个我使用的标记-地图-反应const data = {"shops":[{"name":"Tienda1","location":{"lat":-34.4712726922992,"lng":-58.75985026359558}},
{"name":"Tienda2","location":{"lat":-34.4684599474558,&
每次单击地图时,我都会尝试查看一个InfoWindow,它将显示一个输入字段和一个用于将指定位置添加到列表中的按钮。现在,我只是尝试将文本从表单中取出,我遇到的问题是如何在单击按钮时访问表单?!import React from 'react';import PopUpForm from './PopUpForm';
class Map extends React
刚刚在我的项目中添加了google-maps-react和@types/googlemaps。现在,当我试图捆绑项目时,我得到了下面的错误。 ../../node_modules/google-maps-react/index.d.ts:29:14 - error TS2315: Type 'Object' is not generic.
29 type
但后来我意识到有两个类似的npm安装:我太困惑了!我总是会犯同样的错误:Module not found: Can't resolve 'google-maps-react' in 'C:\Users\USUARIO这是我的代码:import React, { Component } from 'react';