Skip to content

How To Use In React? #50

@zhg-kj

Description

@zhg-kj

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions