react的hooks兴起以后,咱们开始了新技术的探研,从新构建了以react,hooks,echarts为基准的框架,对可视化的封装。开箱便可用,很是实用,特别是若是对echarts有需求的。react
注:本文不是针对hooks用法说明,也把项目中用法删了,因此hooks用法不多,只有本身封装使用到的用法,可是没有给予注释,建议直接查看官网,更准确
。
git clone https://github.com/Songwei1029/hooks_echarts.git
若是已有npm/yarn则跳过git
# npm npm config set registry=https://registry.npm.taobao.org -g # cnpm,使用cnpm npm install -g cnpm # yarn yarn config set registry https://registry.npm.taobao.org -g
若是你本地没有安装
yarn
,请提早安装,yarn下载github
yarn install
# 启动本地服务预览 npm start 或 yarn start # 构建打包 npm run build 或 yarn build # 打包并查看包大小分析 npm run analyze