[cljsjs/react-flip-move "3.0.4-2"] ;; latest release
This jar comes with deps.cljs
as used by the Foreign Libs feature
of the ClojureScript compiler. After adding the above dependency to your project
you can require the packaged library like so:
(ns application.core
(:require cljsjs.react-flip-move))
Here's a simple reagent example:
(def flip-move (r/adapt-react-class js/FlipMove))
(defn my-list [data]
[:div
[:ul
[flip-move {:easing "cubic-bezier(0, 0.7, 0.8, 0.1)"}
(map (fn [[k v]] (vector :li {:key k} v)) (:list @data))]]
[:button.btn.btn-primary
{:on-click #(swap! data update-in
[:list] (fn [s]
(into {} (shuffle (seq s)))))}
"Shuffle"]])
Also provides name react-flip-move
which supports :global-exports
.