Initial commit, basic web page with reagent component is working

This commit is contained in:
heyarne 2021-12-30 15:37:23 +01:00
commit 5aac0474c1
13 changed files with 2103 additions and 0 deletions

View 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))