Skip to content

Instantly share code, notes, and snippets.

View michaelchen753's full-sized avatar

Michael CHEN michaelchen753

  • Sydney
View GitHub Profile
// Script tag to include in <head>:
<script
type="text/javascript"
src="//maps.googleapis.com/maps/api/js?key=YOUR_API_KEY_GOES_HERE&language=en&libraries=places"
></script>
import React, { useState, useEffect } from "react"
// Async google places autocomplete function