https://github.com/hengkx/react-flow-editor2
https://github.com/hengkx/react-flow-editor2
flow-editor react
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/hengkx/react-flow-editor2
- Owner: hengkx
- Created: 2020-04-10T18:54:05.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-25T11:15:28.000Z (about 6 years ago)
- Last Synced: 2025-01-24T20:30:08.521Z (over 1 year ago)
- Topics: flow-editor, react
- Language: JavaScript
- Homepage: https://react-flow-editor2.now.sh
- Size: 38.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-flow-editor2
React Flow Editor.
[![NPM version][npm-image]][npm-url] [![build status][circleci-image]][circleci-url] [![Test coverage][coveralls-image]][coveralls-url] [![node version][node-image]][node-url] [![npm download][download-image]][download-url]
[npm-image]: http://img.shields.io/npm/v/react-flow-editor2.svg?style=flat-square
[npm-url]: http://npmjs.org/package/react-flow-editor2
[circleci-image]: https://img.shields.io/circleci/build/github/hengkx/react-flow-editor2/master.svg?style=flat-square
[circleci-url]: https://circleci.com/gh/hengkx/react-flow-editor2/tree/master
[coveralls-image]: https://img.shields.io/codecov/c/github/hengkx/react-flow-editor2/master.svg?style=flat-square
[coveralls-url]: https://codecov.io/gh/hengkx/react-flow-editor2
[node-image]: https://img.shields.io/badge/node.js-%3E=_6.0-green.svg?style=flat-square
[node-url]: http://nodejs.org/download/
[download-image]: https://img.shields.io/npm/dm/react-flow-editor2.svg?style=flat-square
[download-url]: https://npmjs.org/package/react-flow-editor2
## Development
```bash
npm install
npm start
open http://localhost:9001/
```
## Install
[](https://npmjs.org/package/react-flow-editor2)
## Usage
```js
import React from 'react';
import ReactFlowEditor from 'react-flow-editor2';
const data = {
nodes: [
{ id: '1', x: 100, y: 100 },
{ id: '2', x: 200, y: 200 },
],
edges: [],
};
const Demo = () => ;
export default Demo;
```
## Todo
- [ ] 未完成