useLoadArcGISJSAPI
FunctionuseLoadArcGISJSAPI(): booleanDynamically load ArcGIS Maps SDK for JavaScript, returning a boolean value. If the return value is true, it means the API has been loaded.
example:
const Component = (props) => {
const loaded = useLoadArcGISJSAPI()
if (loaded) {
console.log('ArcGIS JavaScript API loaded')
}
}Returns
boolean