0.0.8 • Published 3 years ago
scan-lib v0.0.8
scan-lib
Scanning Library
Install
npm install --save scan-libUsage
import * as React from 'react'
import { useMyHook } from 'scan-lib'
const Example = () => {
  const { tree, treeLoading, setSelected, selected, setExpanded, expanded, setChecked, checked, getOrderedChildrenById, moveNodes } = useScanTree(ROOT);
  
  return !treeLoading ? (
    <div>
      { JSON.stringify(tree) }
    </div>
  ) : (<>Loading...</>);
}License
MIT © Lemmur