JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<svg width="800" viewBox="0 0 1932 1092" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  <polygon hierarchy="lvl1" points="574,6 1148,6 1330,508 1269,703 1044,858 741,877 491,728 412,459 " style="fill:#9b9b9b;stroke:black;stroke-width:12.0" />
  <polygon hierarchy="lvl2" points="1268,337 439,552 412,459 574,6 1148,6 " style="fill:#9b9b9b;stroke:black;stroke-width:6.0" />
  <polygon hierarchy="lvl3" points="1229,230 1127,265 1100,249 1117,146 1191,124 " style="fill:#9b9b9b;stroke:black;stroke-width:2.0" />
  <polygon hierarchy="lvl3" points="464,312 503,205 590,238 599,300 560,344 " style="fill:#bb6400;stroke:black;stroke-width:2.0" />
  <polygon hierarchy="lvl3" points="692,324 599,300 590,238 642,189 731,240 " style="fill:#00649f;stroke:black;stroke-width:2.0" />
  <polygon hierarchy="lvl3" points="821,329 809,261 880,216 928,239 939,306 893,353 " style="fill:#9b9b9b;stroke:black;stroke-width:2.0" />
  <polygon hierarchy="lvl3" points="568,397 560,344 599,300 692,324 705,355 656,426 " style="fill:#9b9b9b;stroke:black;stroke-width:2.0" />
  <polygon hierarchy="lvl3" points="752,232 773,132 865,135 880,216 809,261 " style="fill:#0064b3;stroke:black;stroke-width:2.0" />
  <polygon hierarchy="lvl3" points="992,196 997,137 1070,115 1117,146 1100,249 1073,255 " style="fill:#00649e;stroke:black;stroke-width:2.0" />
  <polygon hierarchy="lvl3" points="656,6 664,113 640,136 539,102 574,6 " style="fill:#0064a5;stroke:black;stroke-width:2.0" />
  <polygon hierarchy="lvl3" points="793,460 675,491 656,426 705,355 771,374 " style="fill:#9b9b9b;stroke:black;stroke-width:2.0" />
  <polygon hierarchy="lvl3" points="675,491 545,525 530,444 568,397 656,426 " style="fill:#9b9b9b;stroke:black;stroke-width:2.0" />
  <polygon hierarchy="lvl3" points="752,232 809,261 821,329 771,374 705,355 692,324 731,240 " style="fill:#e16400;stroke:black;stroke-width:2.0" />
  <polygon...

JavaScript

$(document).ready(function () {

	  $("polygon[hierarchy=lvl3]")
	    .mouseenter(function () {
	      $(this)
	        .css("stroke-width", 12);
	    })
	    .mouseleave(function () {
	      $(this)
	        .css("stroke-width", 2);
	    });

	});