How to import react libraries on custom component properly in retool?

Hey!

I took a look at the library you're trying to use. They have some documentation under "UMD" that's relevant for you. I think you want to reference the library like this: window["ReactLeaflet"]. In general, it's not possible to infer how to grab a reference to the library from the window object.

Let us know if we can help out any more :slight_smile:

2 Likes