Created
March 2, 2017 18:27
-
-
Save deque-blog/126b90b7d1e834b8383c715d1d36ef26 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
(defn tic-tac-toe | |
"Main entry point, assemble: | |
* the game state | |
* the game view" | |
[] | |
[frame/render @store/current-turn | |
{:on-restart #(store/send-event! :restart) | |
:on-undo #(store/send-event! :undo) | |
:on-move #(store/send-event! %)}]) | |
(reagent/render [tic-tac-toe] | |
(js/document.getElementById "app")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment