Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@uiw/react-amap-require-script

Package Overview
Dependencies
Maintainers
1
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uiw/react-amap-require-script - npm Package Compare versions

Comparing version 3.0.4 to 4.0.0

8

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc