@uiw/react-amap-require-script
Advanced tools
Comparing version 3.0.4 to 4.0.0
{ | ||
"name": "@uiw/react-amap-require-script", | ||
"version": "3.0.4", | ||
"version": "4.0.0", | ||
"description": "基于 React 封装的高德地图组件。AMap Component Based On React.", | ||
@@ -36,8 +36,8 @@ "homepage": "https://uiwjs.github.io/react-amap/#/api-loader", | ||
"dependencies": { | ||
"@uiw/react-amap-types": "3.0.4" | ||
"@uiw/react-amap-types": "4.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "~17.0.39", | ||
"@types/react-dom": "~17.0.11" | ||
"@types/react": "~18.0.0", | ||
"@types/react-dom": "~18.0.0" | ||
} | ||
} |
@@ -14,7 +14,5 @@ @uiw/react-amap-require-script | ||
<!--rehype:bgWhite=true&codeSandbox=true--> | ||
```jsx | ||
import ReactDOM from 'react-dom'; | ||
import React, { useState, useRef } from 'react'; | ||
import { Map, APILoader, MassMarks } from '@uiw/react-amap'; | ||
```jsx mdx:preview | ||
import React, { useState, useRef, useEffect } from 'react'; | ||
import { Map, APILoader, MassMarks, requireScript } from '@uiw/react-amap'; | ||
@@ -64,7 +62,9 @@ const Example = (props) => { | ||
ReactDOM.render(( | ||
const Mount = () => ( | ||
<APILoader akay="a7a90e05a37d3f6bf76d4a9032fc9129"> | ||
<Example /> | ||
</APILoader> | ||
), _mount_); | ||
); | ||
export default Mount; | ||
``` | ||
@@ -71,0 +71,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17373
+ Added@uiw/react-amap-types@4.0.0(transitive)
- Removed@uiw/react-amap-types@3.0.4(transitive)
Updated@uiw/react-amap-types@4.0.0