0.5.0 • Published 4 years ago

react-kityminder v0.5.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

React Kityminder

npm bundle size npm downloads license

github build coverage

Mind map for react, based on kityminder.

Installation

NPM

npm install react-kityminder --save
import Kityminder from 'react-kityminder';

Browser

Direct <script> include

<script src="https://cdn.jsdelivr.net/npm/kity"></script>
<script src="https://cdn.jsdelivr.net/npm/kityminder-core"></script>
<script src="https://cdn.jsdelivr.net/npm/react-kityminder"></script>

Usage

import { useState, useRef } from 'react'

function App(props) {
  const [value, setValue] = useState({})

  const minderRef = useRef()
  const minder = minderRef.current

  const onChange = setValue

  return (
    <Kityminder
      ref={minderRef}
      value={value}
      onChange={onChange}
    />
  )
}
0.5.0

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago