return <div className="esri‑map" ref={this.mapDiv} />; ... Create a map after the component renders ... const mapRef = useRef<HTMLDivElement>(null);.
確定! 回上一頁