Re: [ClojureScript] Importing react components from clojurescript

2018-08-20 Thread Alan Thompson
Meant to paste the URL: https://github.com/cloojure/cljs-template Alan On Mon, Aug 20, 2018 at 4:32 PM Alan Thompson wrote: > If you clone this template project it provides examples of 3 ways in > "import" native JS code into a CLJS project (see "dino.js" etc). > >

Re: [ClojureScript] Importing react components from clojurescript

2018-08-20 Thread Dusan Miloradovic
I think the easiest way to do it is using the shadow-cljs. Here is the example: https://github.com/shadow-cljs/examples/tree/master/cljs-react-app On Mon, Aug 20, 2018 at 6:43 PM Quentin Le Guennec < quentin.leguenn...@gmail.com> wrote: > It doesn't quite answer everything. I would like a full

Re: [ClojureScript] Importing react components from clojurescript

2018-08-20 Thread Philos Kim
https://github.com/cljsjs/packages/tree/master/react-flip-move 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

Re: [ClojureScript] Importing react components from clojurescript

2018-08-20 Thread Quentin Le Guennec
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? On 8/20/18 3:09 AM, Philos Kim wrote: > The react-flip-move library in the example is written in React > JavaScript code. > >