This file contains hidden or 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 react-components.core | |
| (:require [reagent.core :as reagent :refer [atom]])) | |
| (enable-console-print!) | |
| (defonce app-state | |
| (atom {:text "Hello world!" | |
| :plain {:comment "and I can take props from the atom"}})) | |
| (defn comment-box [] |
This file contains hidden or 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 ^:figwheel-always local-state.core | |
| (:require-macros [cljs.core.async.macros :refer [go]]) | |
| (:require [om.core :as om :include-macros true] | |
| [om.dom :as dom :include-macros true] | |
| [cljs.core.async :refer [put! chan <!]])) | |
| (enable-console-print!) | |
| (defonce app-state (atom {})) |
This file contains hidden or 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 no-instrument.core | |
| (:require[om.core :as om :include-macros true] | |
| [om.dom :as dom :include-macros true])) | |
| (enable-console-print!) | |
| ;; Instrumentation | |
| ;; =============== | |
| (defn paint-component |
NewerOlder