Skip to content

Instantly share code, notes, and snippets.

@tasshin
Created September 9, 2017 16:27
Show Gist options
  • Select an option

  • Save tasshin/3c410f852f07508d605399cb7a0b7460 to your computer and use it in GitHub Desktop.

Select an option

Save tasshin/3c410f852f07508d605399cb7a0b7460 to your computer and use it in GitHub Desktop.

Revisions

  1. tasshin created this gist Sep 9, 2017.
    8 changes: 8 additions & 0 deletions reagent_solution.cljs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    (defn react-function-1 [game-atom]
    (let [g @game-atom]
    [:b g]))

    (defn react-function-2 [game-atom]
    (fn []
    (let [g @game-atom]
    [:b g])))