File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 7
7
[lucywang000/hashp " 0.1.2" ]
8
8
[binaryage/devtools " 1.0.0" ]]
9
9
10
+ :nrepl {:port 6666
11
+ :cider true
12
+ :init-ns user}
13
+
10
14
:builds {:app {:target :browser
11
15
12
16
:dev
Original file line number Diff line number Diff line change 35
35
:aria-hidden " true" })))
36
36
(d/td {:class " col-md-6" })))
37
37
38
+ (defonce id-atom (atom 0 ))
39
+
38
40
(defnc main []
39
- (let [id-atom ( atom 0 )
40
- [data set-data] (use-state [])
41
+ (js/console.log " re-render " )
42
+ ( let [ [data set-data] (use-state [])
41
43
[selected set-selected] (use-state nil )
42
44
print-duration
43
45
(fn print-duration []
86
88
(d/div
87
89
{:class " row" }
88
90
(d/div {:class " col-md-6" }
89
- (d/h1 " Helix" ))
91
+ (d/h1 ( str " Helix (total rows " ( count data) " ) " ) ))
90
92
(d/div {:class " col-md-6" }
91
93
(d/div {:class " row" }
92
94
(d/div {:class " col-sm-6 smallpad" }
You can’t perform that action at this time.
0 commit comments