我想呈现组件Searchbox,我在我的应用程序中完全复制了它,但出现错误:
error Line 44: 'google' is not defined no-undef Line 79: 'google' is not defined no-undef
我已经加载了我的
<script async defer src="https://maps.googleapis.com/maps/api/js?key=MY_KEY_IS_HERE"></script>
进入我的头脑,index.html
但无论如何它向我展示了错误。会不会,index.html
无法加载我的脚本?
我用 create-react-app 创建了我的应用程序