Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created March 1, 2017 13:16
Show Gist options
  • Save deque-blog/216ea3ca17b15fbe58b3e51f35c29db2 to your computer and use it in GitHub Desktop.
Save deque-blog/216ea3ca17b15fbe58b3e51f35c29db2 to your computer and use it in GitHub Desktop.
(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