UNPKG

react-raphael-map

Version:
33 lines (22 loc) 938 B
# react-raphael-map [![Version](https://img.shields.io/npm/v/react-raphael-map.svg)](https://www.npmjs.com/package/react-raphael-map) [![Downloads](https://img.shields.io/npm/dt/react-raphael-map.svg)](https://www.npmjs.com/package/react-raphael-map) so easy,draw map with react-raphael! ## Install # 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 ## Quickly Start ``` js 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")); ``` ## Run Example git clone https://github.com/liuhong1happy/react-raphael-map npm install npm run example ## Contact - Email: [liuhong1.happy@163.com](mailto:liuhong1.happy@163.com)