Fork me on GitHub
#reagent
<
2019-02-02
>
vinurs15:02:56

<a href=“javascript: void(0);” class=“side-nav-link”>click me</a>

vinurs15:02:36

this code how to convert to hiccup-like code

vinurs15:02:23

[:a {:href “” :class “side-nav-link”} “clickme”]

vinurs15:02:46

the code “javascript: void(0);” how to convert?

lilactown16:02:31

@haiyuan.vinurs :on-click #(.preventDefault %)

kwladyka20:02:43

https://github.com/r0man/sablono

(defn hello-world [state]
    (sab/html [:div
               [:h1 (:text @state)]
               [:h3 "Edit this in src/fe/core.cljs and watch it change!"]]))
I see this lib start to be popular. Is a way to not write sab/html all the time?

kwladyka20:02:05

And if using it really improve something with real code apps 😉 What is your experience?