so easy,draw map with react-raphael!
# or specify the externals in webpack config
npm install --save raphael
# install react-raphael-map in your react-raphael-map project
npm install --save react-raphael-map
var React = require('react');
var ReactDOM = require('react-dom');
var {china,Map} = require('react-raphael-map');
ReactDOM.render(<Map data={china} width={480} height={560} />,document.getElementById("react-container"));
git clone /~https://github.com/liuhong1happy/react-raphael-map
npm install
npm run example
- Email: liuhong1.happy@163.com