OnsenUI (or Ionic) with ClojureScript/Reagent

676 views
Skip to first unread message

Henrik Mohr

unread,
May 20, 2015, 4:29:08 AM5/20/15
to clojur...@googlegroups.com
Hi there!

I've started building a hybrid mobile app using Cordova, ClojureScript and React via Reagent. Most parts work perfectly.

To make my mobile UI speedy and nice to look at, I've tried using OnsenUI (http://onsen.io).

OnsenUI uses web components, just as Ionic does. So I have to call (.compile js/ons dom-elm) on :component-did-mount to make it look right. This also works fine.

What I can't get my head around is how to smoothly attach ClojureScript based events to elements such as the Onsen buttons <ons-button/>. The onclick event seems to work only with AngularJS events, and I've never spent a minute on Angular so..

Any input, or should I go for KendoUI until a better ClojureScript/React/Reagent backed alternative arises?

Or can someone point me to a really simple/lightweight HTML5/CSS/JS framework that I can use today? Flat UI and speed are my first priorities, then patterns/GUI elements like what Onsen offers are second.

Thanks in advance!

Best,
Henrik

Henrik Mohr

unread,
Sep 21, 2015, 4:32:46 AM9/21/15
to ClojureScript
My own answer so far, by the way:
https://github.com/enterlab/cordevicljs

Taylor Sando

unread,
Sep 21, 2015, 12:05:32 PM9/21/15
to ClojureScript
React native is out now for android and ios. You might want to look into using it. I haven't had time to play around with it yet. However, I've used Kendo to make hybrid apps using reagent.

Luposlip

unread,
Sep 22, 2015, 6:52:36 AM9/22/15
to clojur...@googlegroups.com
Thanks Taylor, but still haven't seen a nice/proven way to integrate React Native with ClojureScript?

On Mon, Sep 21, 2015 at 6:05 PM Taylor Sando <taylor...@gmail.com> wrote:
React native is out now for android and ios.  You might want to look into using it.  I haven't had time to play around with it yet.  However, I've used Kendo to make hybrid apps using reagent.

--
Note that posts from new members are moderated - please be patient with your first post.
---
You received this message because you are subscribed to a topic in the Google Groups "ClojureScript" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/clojurescript/QRNYbd4UolQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to clojurescrip...@googlegroups.com.
To post to this group, send email to clojur...@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.
Reply all
Reply to author
Forward
0 new messages