Skip to content

Instantly share code, notes, and snippets.

@nshimiye
Last active March 6, 2019 19:51
Show Gist options
  • Save nshimiye/418207743a3e66384ef774940d7bb5bd to your computer and use it in GitHub Desktop.
Save nshimiye/418207743a3e66384ef774940d7bb5bd to your computer and use it in GitHub Desktop.
// @WARNING this is incomplete
export function GoogleMapWithLoader({
googleMapURL, children, center, zoom, height, width,
}) {
return (
<ScriptLoader scriptUrl={googleMapURL}>
<GoogleMapInitialzer
center={center}
zoom={zoom}
height={height}
width={width}
>
{children}
</GoogleMapInitialzer>
</ScriptLoader>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment