Uibench final fix

This commit is contained in:
Roman Vishnevskii 2017-04-27 22:22:18 +07:00
commit e434517dd1
2 changed files with 5 additions and 2 deletions

View file

@ -6,7 +6,6 @@
<title>UI Benchmark: React</title>
</head>
<body>
<div id="App"></div>
<div id="ROOT"></div>
@ -14,4 +13,4 @@
<script src="nimcache/nim_uibench.js" type="text/javascript"></script>
</body>
</html>
</html>

View file

@ -98,6 +98,10 @@ proc createTreeNode(data: TreeNodeState): VNode =
children.add(createTreeNode(n))
else:
children.add(createTreeLeaf(n))
result = buildHtml(ul(class="TreeNode")):
for child in children:
child
proc treeCreateVNode(data: TreeState): VNode =
kout cstring"treeCreateVNode"