Use ref as a property of StaticMap. const Map: React.FunctionComponent<IMap> = ({ ... const mapBox = createRef<MapRef>(); ... return ( <StaticMap ...
確定! 回上一頁