-
Notifications
You must be signed in to change notification settings - Fork 0
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
Hello stereobooster, I think I found a workaround #1
Comments
Does it tries to look take approach of Controlled Components? E.g. HTML |
I don't quite get your question, but if you mean is it possible using react wrapper to control the original mapbox-gl, I guess the answer is yes. just check his demos http://alex3165.github.io/react-mapbox-gl/ |
No. Read about Controlled Components. By default html (pure html, no react) input can handle it's events by itself, you do not need to write JS code. But in React you need to handle handleChange(event) {
this.setState({value: event.target.value});
} |
ah.ok. I got what you are saying now. but it is out of my scope currently now, I just wanna a easy boilerplate using mapbox and react. |
Well at least Marker/Popup can be done right way alex3165/react-mapbox-gl@50fca94 |
awesome! |
Welp alex3165/react-mapbox-gl#231 😨 |
Hey stereobooster, I also wanted to do a project to use both
creat-react-app
andreact-map-gl
, I did encounter the same issue you have, that's why I am here. I just tried another mapbox react wrapper react-mapbox-gl. And I booted up an initial project...maybe you can also try itThe text was updated successfully, but these errors were encountered: