snazzy-info-window icon indicating copy to clipboard operation
snazzy-info-window copied to clipboard

How To Use In React?

Open zhg-kj opened this issue 4 years ago • 0 comments

New to this...

I am trying to use this in my React app but it is not working

Here is the related code:

import {SnazzyInfoWindow} from 'snazzy-info-window;

//inside my render
<InfoWindow
          marker={this.state.activeMarker}
          visible={this.state.showingInfoWindow}
          onClose={this.onClose}
        >
        <div>
          <h5>{this.state.selectedPlace.name}</h5>
          <p>{this.state.selectedPlace.address}</p>
          <p>{this.state.selectedPlace.busy}</p>
        </div>
</InfoWindow>

It isn't working but I'm not sure how else to do it. Any help is greatly appreciated

zhg-kj avatar Jun 26 '20 01:06 zhg-kj