g6/packages/react-node
Aaron cb7a763446
chore: optimize project configs (#5299)
* chore: optimize project configs
2023-12-28 11:05:09 +08:00
..
docs feat: add react-node for v5 (#5079) 2023-12-11 22:27:31 +08:00
src feat: add react-node for v5 (#5079) 2023-12-11 22:27:31 +08:00
.dumirc.ts feat: add react-node for v5 (#5079) 2023-12-11 22:27:31 +08:00
.fatherrc.ts feat: add react-node for v5 (#5079) 2023-12-11 22:27:31 +08:00
.gitignore chore: optimize project configs (#5299) 2023-12-28 11:05:09 +08:00
.stylelintrc feat: add react-node for v5 (#5079) 2023-12-11 22:27:31 +08:00
LICENSE feat: add react-node for v5 (#5079) 2023-12-11 22:27:31 +08:00
package.json chore: optimize project configs (#5299) 2023-12-28 11:05:09 +08:00
README.md docs: update g6 version and react-node usage (#5260) 2023-12-12 14:52:07 +08:00
tsconfig.json chore: optimize project configs (#5299) 2023-12-28 11:05:09 +08:00

@antv/g6-react-node

NPM version NPM downloads

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