How react references external links within a component

it is feasible to introduce some api, of Amap into the project written by Amap and directly put it in html, but only if you want to reference him in the used component, is there any way to import it outside the chain

<script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.8&key=XXX"></script>

Mar.28,2021

const script = document.createElement("script");
script.src = "https://webapi.amap.com/maps?v=1.4.8&key=XXX";
const s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(script, s);

Amap react component

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3d14d-2b6ca.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3d14d-2b6ca.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?