1

I am working on a project in react and I am trying to implement an interactive map.

But I have some problems while trying to implement it. I created a function that retrieves all the HTML of the map, the map is then displayed, but it doesn't work. I think I am not loading the JS files of the map correctly.

<script src="./js/jquery-1.10.2.min.js"></script>
<script src="./js/jquery.maphighlight.min.js"></script>
<script src="./js/imageMapResizer.min.js"></script>
<script src="./js/scripts.js"></script>

I am doing it in this way in the return of the component

AGE
  • 3,752
  • 3
  • 38
  • 60
Dj Gas
  • 33
  • 2

2 Answers2

0

There is no correct way to mix jquery with react. More about it, you can find here

Antoni
  • 1,316
  • 2
  • 16
  • 42
0

No Option available to join jquery code with react. but you can render HTML page in React Component. for more detail Visit Here

Mandeep
  • 364
  • 2
  • 16