[ClojureScript] Re: How to use js/React.addons.CSSTransitionGroup with reagent ?

2015-08-10 Thread Mike Thompson
On Tuesday, August 11, 2015 at 4:29:25 AM UTC+10, Roger Gilliar wrote: > I'm trying to use a CSSTransitionGroup with a reagent component that looks > like this: > > (defmethod render-page :code-example [{:keys [title origin content lang > explanation output]}] > (let [content-indexed (map-inde

[ClojureScript] Re: Need Help

2015-08-10 Thread Hari Krishnan
On Monday, August 10, 2015 at 2:46:45 PM UTC-7, Hari Krishnan wrote: > Hello all, > > I am using Reagent/forms for my UI, and use it for my tables. I also use > DataTable, after component-did-mount, for getting the sorting & pagination > etc (may not be the right way, as it is based on JQuery).

[ClojureScript] Need Help

2015-08-10 Thread Hari Krishnan
Hello all, I am using Reagent/forms for my UI, and use it for my tables. I also use DataTable, after component-did-mount, for getting the sorting & pagination etc (may not be the right way, as it is based on JQuery). I will refactor it later. But right now, it is enabling me to move fast wit

[ClojureScript] How to use js/React.addons.CSSTransitionGroup with reagent ?

2015-08-10 Thread Roger Gilliar
I'm trying to use a CSSTransitionGroup with a reagent component that looks like this: (defmethod render-page :code-example [{:keys [title origin content lang explanation output]}] (let [content-indexed (map-indexed (fn [idx c] [idx c]) (vectorize content))] [css-transition-group {:transiti

Re: [ClojureScript] Best practices when working with OOP oriented library

2015-08-10 Thread Omid Mo'menzadeh
The project isn't public unfortunately, due to the amount of graphics outsourced in it. But generally, my approach was writing a kind of small (only the parts I used) wrapper around the libraries. The wrapper got bigger and bigger during the project, but it never got close to half of the full API

Re: [ClojureScript] Best practices when working with OOP oriented library

2015-08-10 Thread Aleksandr
On Monday, August 10, 2015 at 5:10:19 PM UTC+2, Omid Mo'menzadeh wrote: > The problem actually isn't the interop, but the fact that the code will > contain a lot of mutations, because of the nature of the Javascript libraries > out there. I have tried using a few of the tools, such as CreateJS wi

Re: [ClojureScript] Best practices when working with OOP oriented library

2015-08-10 Thread Omid Mo'menzadeh
The problem actually isn't the interop, but the fact that the code will contain a lot of mutations, because of the nature of the Javascript libraries out there. I have tried using a few of the tools, such as CreateJS with Clojurescript, it works, but the code isn't really idiomatic Clojurescript af

Re: [ClojureScript] Best practices when working with OOP oriented library

2015-08-10 Thread Linus Ericsson
Well, if you know javascript well enough I don't think the interop is that much of a problem. There are some things which can be a bit unintuitive, but usually there are plenty of answered questions at StackOverflow and other places, or just ask here! I would recommend starting out with lein figwh

[ClojureScript] Best practices when working with OOP oriented library

2015-08-10 Thread Aleksandr
Hi, I am working on an HTML5 game and eager to use clojurescript, however, the library I am planning to use heavily relies on OOP principles. Are there good examples on wrappers around existing javascript libraries? Thanks! -- Note that posts from new members are moderated - please be patient

Re: [ClojureScript] [ANN] Eulalie 0.6.0

2015-08-10 Thread Moe Aboulkheir
Kovas, On Mon, Aug 10, 2015 at 4:23 AM, kovas boguta wrote: > > In this case, why not let the user decide what async strategy to use? IMHO callbacks are the simplest thing since you can layer different > async strategies on top of them. Offering a comparable interface using callbacks would re