Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created March 1, 2017 13:16
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
(ns tictactoe.view.frame
(:require
[tictactoe.view.board :as board]
[tictactoe.view.panel :as panel]))
(defn render
"Rendering the main frame of the game,
takes as input the callbacks to trigger events"
[{:keys [board] :as turn} callbacks]
[:div
[panel/render-top-panel turn callbacks]
[board/render-board board callbacks]
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment