Skip to content

Instantly share code, notes, and snippets.

View JonSilver's full-sized avatar
😎
Coding

Jon Silver JonSilver

😎
Coding
View GitHub Profile
import React from 'react'
import { NavLink as RRNavLink, Link } from 'react-router-dom'
import {
Collapse,
Navbar,
NavbarToggler,
NavbarBrand,
Nav,
NavItem,
NavLink
@mavame
mavame / GoogleMapsApi.js
Last active December 6, 2023 21:53
A simple class for loading the Google Maps Javascript API in browser async using ES6 and Promise
/**
* Use this class to ensure Google Maps API javascript is loaded before running any google map specific code.
*/
export class GoogleMapsApi {
/**
* Constructor set up config.
*/
constructor() {
// api key for google maps