Basically I'm trying to implement an external JDK offered by a third party into my react application. It essentially plugs an interactive map on your page. In the usage guide it's implemented like such:
<div class="mapdiv" id="some_id" other_important_content="something"></div>
<script src="https://example.com/script.js"></script>
You just stick that anywhere in your html and it loads up the map in the mapdiv.
Obviously, this isn't how react handles this. I want a map widget component, but how should I include this script? There's no NPM package for it. I'm assuming what happens is the script looks for the div and loads in the relevant content. What is the best practice for handling this in react?