how can I switch the li class in a list with clojurescript, when the @switchvar is true all odd lines should be active, in the other case the even lines should be active
I tried an if statement, nothing happens.
(defn listitems [items]
[:ul
(for [item items]
^{:key item} [:li {:class
(if (@switchvar true)
((odd? item) "active")
((even? item) "active") )
} "Item " item ])])