+ vscode night owl theme

This commit is contained in:
committer
2024-05-15 07:15:59 -05:00
parent e2c14487aa
commit d18120752c
51 changed files with 19760 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
(ns hello.world.clojurescript
(:require [reagent.core :as r])
(def counter (r/atom 0))
(def text-component-style {:background-color :grey
:border "1px solid black"
:padding "5px"})
(defn counter-clicked []
(.log js/console "You clicked the counter component.")
(swap! counter inc))
(defn text-counter [text]
[:div {:on-click counter-clicked
:style text-component-style})
(str text @counter])
(defn main-component []
[:div
[:p {:style {:color :red}} "Hello world! Click the element below:"]
[text-counter "Clicked: "]])