Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How To Use In React? #50

Open
zhg-kj opened this issue Jun 26, 2020 · 0 comments
Open

How To Use In React? #50

zhg-kj opened this issue Jun 26, 2020 · 0 comments

Comments

@zhg-kj
Copy link

zhg-kj commented Jun 26, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant