-
-
Save nicolasartman/4166ddc4b8b7f3f07496 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns interviewing-io.core | |
(:require | |
[om.core :as om] | |
[om-tools.core :refer-macros [defcomponent, defcomponentk]] | |
[om-tools.mixin :refer-macros [defmixin]] | |
[sablono.core :as html :refer-macros [html]])) | |
(enable-console-print!) | |
; (js/alert "test") | |
(defn testfun [] 8) | |
(.log js/console (testfun)) | |
(defonce app-state (atom {:list ["This" "Is" "Sparta..." "Antelope?"]})) | |
(om/root | |
(fn [data owner] | |
(om/component | |
(html | |
(map #([:h1 %]) (:list data))))) | |
app-state | |
{:target (. js/document (getElementById "om-test"))}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment