Skip to content

Commit 6f5a638

Browse files
committed
fix(readme): fix faulty indent in README
1 parent 3d16ae6 commit 6f5a638

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ With `useTree` you can focus on how to render your tree structure and forget abo
1010
- [Components and hooks](#components-and-hooks)
1111
- [TreeContainer](#treecontainer)
1212
- [interface TreeSource](#interface-treesource)
13-
- [staticTreeSource()](#statictreesource)
13+
- [staticTreeSource()](#statictreesource)
1414
- [interface TreeState](#interface-treestate)
1515
- [useTreeController()](#usetreecontroller)
1616
- [useTreeNodeController(id: string)](#usetreenodecontrollerid-string)
@@ -83,7 +83,7 @@ Type `TreeSourceNode<T>` contains all the properties of `T` (which is a type tha
8383
* `id: string`: a unique identifier (within the tree) of the node.
8484
* `hasChildren: boolean`: whether or not this node has child elements.
8585

86-
## staticTreeSource()
86+
### staticTreeSource()
8787
If you have the full content of the tree available in an object and you don't need lazy loading, you can use `staticTreeSource(data)` to turn it into a `TreeSource`. Your `data` must be an array of root nodes which conform to `StaticTreeSourceNode<T>`:
8888

8989
* All properties from `TreeSourceNode<T>`

0 commit comments

Comments
 (0)