ReactShopify可拖动组件库:将@shopifydraggable移植至React

安装到项目中npm install @wuweiwu/react-shopify-draggable # 或者使用yarn add @wuweiwu/react-shopify-draggable导入React及相关组件:jsximport React, { Component } from 'react';import { DraggableItem, DraggableContainer, } from '@wuweiwu/react-shopify-draggable';import '../shared/favicon.ico';import './stylesheets/app.css';生成随机颜色的函数:jsxconst random255 = () => Math.floor(Math.random() * 256);const randomColor = () => `rgb(${random255(), random255(), random255()})`;

folder
react-shopify-draggable:@shopifydraggable到React的端口 预估大小:103个文件
file
.eslintrc 1KB
file
.babelrc 184B
file
webpack_vx.x.x.js 63KB
file
eslint-plugin-import_vx.x.x.js 13KB
file
autoprefixer_vx.x.x.js 15KB
file
eslint-plugin-flowtype_vx.x.x.js 15KB
file
eslint-plugin-react_vx.x.x.js 23KB
file
eslint_vx.x.x.js 72KB
file
eslint-plugin-jsx-a11y_vx.x.x.js 41KB
file
jest_v22.x.x.js 18KB
file
lodash_v4.x.x.js 186KB
file
.flowconfig 269B
file
DraggableContainer.js 9KB
file
index.html 347B
file
app.css 78KB
file
github-light.css 3KB
file
stylesheet.css 3KB
file
aside.js 9KB
file
favicon.ico 318B
file
.gitignore 212B
zip 文件大小:220.68KB