Skip to content

Instantly share code, notes, and snippets.

@dillonforrest
Created January 28, 2014 21:03
Show Gist options
  • Save dillonforrest/8676471 to your computer and use it in GitHub Desktop.
Save dillonforrest/8676471 to your computer and use it in GitHub Desktop.
why doesn't this compile?
(ns om-tut.coreeee
(:require [om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]))
(enable-console-print!)
(def app-state (atom {:text "Hello world!"}))
(om/root
app-state
(fn [app owner]
(dom/h1 nil (:text app)))
(. js/document (getElementById "app")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment