How to create MapboxGLJS map object outside componentdidMount method?
Im a beginner in REACTJS and mapbox. I have created React Component class and mapbox map object in componentDidmount method. My question is how to make map object public so that i can use it in all methods of the classs?