(ns playground.core
  (:require [uix.core :as uix :refer [defui $]]
            [uix.dom]))

(defui app []
  (let [[n set-n] (uix/use-state 0)]
    ($ :.flex.flex-col.justify-center.items-center.h-screen
      ($ :img.animate-bounce
        {:src "https://raw.githubusercontent.com/pitch-io/uix/master/logo.png"
          :width 128})
      ($ :div.text-xl.mb-4 "Hello")
      ($ :div.text-4xl.animate-ping
        "đź‘‹"))))

(defonce root (uix.dom/create-root (js/document.getElementById "root")))
(uix.dom/render-root ($ app) root)