scan-lib
v0.0.8
Published
Scanning Library
Downloads
10
Readme
scan-lib
Scanning Library
Install
npm install --save scan-lib
Usage
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