https://github.com/reagent-project/reagent/blob/master/doc/InteropWithReact.md
It doesn't quite answer everything. I would like a full example
of a project using a react javascript component. Do you have an
idea where I could find that?
--
Note that posts from new members are moderated - please be patient with your first post.
---
You received this message because you are subscribed to the Google Groups "ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojurescrip...@googlegroups.com.
To post to this group, send email to clojur...@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.
Add the following to :dependencies section in project.clj
[cljsjs/react-flip-move "3.0.1-1"]
Your cljs code:
(ns application.core
(:require cljsjs.react-flip-move))
(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"]])
g...@github.com:cloojure/cljs-template.git