How to use React with Google Places API, to display place markers on a Google map?
问题 I'm trying to build a similar map as on Airbnb, where you can view place markers as you drag the map around. I would like to display "hotel" markers from the Google Places API on a map. Using the following JS code from Google Maps I can display hotels on the google map, but I would like to do this with React, using react-google-maps. <!DOCTYPE html> <html> <head> <title>Place searches</title> <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> <meta charset="utf-8"> <style> /