I'm trying to work out if I can use Om on Node.js to generate HTML. I've been able to get ClojureScript running on Node.js and apparently React can be run on Node.js.
I create a Leiningen project as follows as per the basic guide
lein new figwheel…
I have a single page application that consists of 4,000 lines of ClojureScript. The page is served up from a Clojure Web Server and is running inside of my browser. What I want to do is to start a REPL inside of my page and connect to it from…
Say I have the following map:
(def m {"a" {"d" {}
"e" {}}
"b" {"f" {}
"g" {"h" {}
"i" {}}}
"c" {}})
I need to render it like this:
(om.dom/div #js {} "a"
(om.dom/div #js {} "d")
…
In Om, is there a way to add a class to an element based on some value in the main app atom?
Take the following element, for example:
(defn some-component [app owner]
(reify
om/IRender
(render
[_]
(html
[:div {:class…
In my Reagent project, I'm parsing HTML with Hickory and rendering a Hiccup page. The hiccup is rendered. But when I change the page (!reset my view atom), React.js goes crazy because Hickory has generated:
[:div (as-hiccup (parse "
I am trying to grasp the purpose of the two OM functions get-state and get-props. Have a look at the following example:
(defn example [app owner]
(reify
om/IInitState
(render-state [this state]
(println "app-state: " app )
…
I'm new to clojurescript and I got a task of creating a filter with toggling list items requirement on click of a plus icon. I have written css to hide when the class is inactive and show when it's active. I just want to know the correct syntax how…
The IAB has a new SDK for measuring viewability in app, and they have launched the OM SDK. Do you know if there is a Cordova plugin for this or if maybe are there plans to develop it?
Here is the IAB article refering to OM…
is there any small example application in On next with GraphQL backend (few pages, queries and mutations)?
I'm doing presentation about Sangria (Scala GraphQL server library) and I want some frontend for it. And also I'm curious about Om for longer…
I'm trying to understand the normalization, identity and querying concepts in Om Next. Every time I think I have it, I run into a new situation that seems to baffle me.
I have a remote that returns the following data:
{:users [
{:id 1,
:email…
Trying this Om & React tutorial https://www.codementor.io/reactjs/tutorial/build-single-page-app-with-react-om-clojurescript . When compiling clojurescript I get an error clojure.lang.ExceptionInfo: Don't know how to create ISeq from:…
Om.Next is an excellent and clean UI library for use with Clojure and Clojurescript and I'm trying to add functionality for commenting to our website.
Essentially: entities have a bid (blurb-id) and now I want to add comments.
My idea is:
entities…
Reading this Om Next tutorial page Components, Identity & Normalization, I thought the subquery from the subcomponent (Person component) is used to populate the Person's props. But changing the query from
'[:name :points :age]
to
'[]
doesn't break…
As I'm only starting to fully understand, om.core/build and om.next's factory functions return React element objects, which refer to component functions/classes, and the actual component is only instantiated later by React's reconciler. That is,…
I'm just picking up om.next and have run into a situation where I've got some form inputs realized as components which hold on to local state, e.g. validation state, actual input value, etc--this state is updated and accessed via…