Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielglauser/cdb58c152e035c002cc8b0b97a4677e3 to your computer and use it in GitHub Desktop.
Save danielglauser/cdb58c152e035c002cc8b0b97a4677e3 to your computer and use it in GitHub Desktop.
```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