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
(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