mirror of
https://gitee.com/antv/g6.git
synced 2024-11-30 02:38:20 +08:00
cb7a763446
* chore: optimize project configs |
||
---|---|---|
.. | ||
docs | ||
src | ||
.dumirc.ts | ||
.fatherrc.ts | ||
.gitignore | ||
.stylelintrc | ||
LICENSE | ||
package.json | ||
README.md | ||
tsconfig.json |
@antv/g6-react-node
Using React Component to Define Your G6 Graph Node
Usage
pnpm install @antv/g6-react-node@2.0.0-beta.1
import { createReactNode, createReactGNode } from '@antv/g6-react-node';
const ReactNode = createReactNode({
// ... React Component
});
const ReactGNode = createReactGNode({
// ... JSX Component
});
Development
# install dependencies
$ pnpm install
# develop library by docs demo
$ pnpm start
# build library source code
$ pnpm run build
# build library source code in watch mode
$ pnpm run build:watch
LICENSE
MIT