A tool to make mind-mapping easier
npm install mini-xmind



``bash`
npm install mini-xmind --save-dev
Check dataSource here.
`javascript
import React, { useState, useEffect } from 'react';
import { Canvas, Toolbar } from 'mini-xmind';
const dataSource = {...};
export default () => {
const [data, setData] = useState({});
useEffect(() => {
setData(dataSource);
}, []);
const onChange = newData => {
setData(newData);
};
return (
<>
>
);
};
`
`bash`
$ git clone https://github.com/peko-bot/mini-xmind.git
$ cd mini-xmind
$ npm install
$ npm start
Open your browser and visit
```
npm test
No prop for now, just render
| Property | Description | Type | Default |
| ----------- | --------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------- |
| data | what you want to paint in canvas | DataSource | {} |
| onChange | return all data when dragging or typing in TagGroup | (dataCollector: DataSource) => void | - |
| orientation | the direction of Line startting | enum, ['horizonal', 'vertical'] | horizonal |