react-echarts-umd
v1.0.1
Published
echarts-for-react umd library
Downloads
7
Readme
react-echarts-umd
echarts-for-react umd library
UMD
<script src="https://cdn.jsdelivr.net/npm/react-echarts-umd/umd/react.echarts.js"></script>
Usage
- webpack config
module.exports = {
...
externals: {
react: 'React',
'react-dom': 'ReactDOM',
'echarts-for-react': 'ReactEcharts',
'react-echarts-umd': 'ReactEcharts',
},
...
}
- Example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/umd/react.production.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/umd/react-dom.production.min.js"></script>
<script src="/umd/react-echarts.js"></script>
</head>
<body>
<div id="root"></div>
<script src="/demo/bundle.js"></script>
</body>
</html>