Last active
March 7, 2018 23:31
-
-
Save danielglauser/cdb58c152e035c002cc8b0b97a4677e3 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
```clojure | |
(ns browserless-test.components | |
(:require | |
[reagent.core :as reagent])) | |
(defn easy-component [] | |
[:div "I'm easy"]) | |
(defn stateful-component [is-easy-atom] | |
[:div (str "I'm " | |
(if @is-easy-atom "also" "less") | |
" easy.")]) | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment