Skip to content

Instantly share code, notes, and snippets.

@paulkoegel
Created May 17, 2019 21:17
Show Gist options
  • Save paulkoegel/736afb24d4d8e01bef86c4ad80e16cef to your computer and use it in GitHub Desktop.
Save paulkoegel/736afb24d4d8e01bef86c4ad80e16cef to your computer and use it in GitHub Desktop.
(ns instructions.core
(:require [reagent.core :as reagent]
[re-frame.core :as re-frame]))
(defn parent [& children]
[:div
[:h1 "Parent"]
children])
(defn info []
[:div
[parent
[:.tac "Hello"]]])
;; This renders the app to the right-hand panel
(reagent/render
[info]
(js/document.getElementById "app"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment