DEV Community

Discussion on: How to integrate Mapbox GL JS in your Next.js Project without react-map-gl or a React wrapper library

Collapse
 
dannyboynyc profile image
Daniel Deverell

This was very helpful for me as well. Thank you so much!

I was ultimately unable to send and receive props to the popup components since they are instantiated once in the main useEffect call. I tried Context and was able to "inject" a function into the popup to enable button functionality but this was not enough for my use case so I had to go with React-GL in the end.

I'd be curious to know if you ended up implementing React GL to support the functionality in DC Live.