snazzy-info-window
snazzy-info-window copied to clipboard
How To Use In React?
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