Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created March 2, 2017 18:27
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 deque-blog/126b90b7d1e834b8383c715d1d36ef26 to your computer and use it in GitHub Desktop.
Save deque-blog/126b90b7d1e834b8383c715d1d36ef26 to your computer and use it in GitHub Desktop.
(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