Initial commit, basic web page with reagent component is working
This commit is contained in:
commit
5aac0474c1
13 changed files with 2103 additions and 0 deletions
14
src/heyarne/rect_packing/core.cljs
Normal file
14
src/heyarne/rect_packing/core.cljs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
(ns heyarne.rect-packing.core
|
||||
(:require [reagent.core :as r]
|
||||
[reagent.dom :as dom]))
|
||||
|
||||
(defn main []
|
||||
[:main
|
||||
[:h1 "Hello world"]
|
||||
[:p "This is a starting point"]])
|
||||
|
||||
(defn ^:dev/after-load init []
|
||||
(println "Initializing…")
|
||||
(dom/render [main] (.querySelector js/document "#app")))
|
||||
|
||||
(defonce app (init))
|
||||
Loading…
Add table
Add a link
Reference in a new issue