ClojureScript
1 program
Added 2025-10-22T09:54:30Z
Model: openai/gpt-4o-miniTemp: 0.4
Evidence
Report issue
View issues
Aliases: ClojureScript, CLJS
Provenance: commit 121864a944 · authored 2025-10-22T11:54:30+02:00 · model openai/gpt-4o-mini
Sources mentioning this language
3 sources · pl_id:
pl/clojurescriptExtensions claimed by this language
1 claim. Each row is one upstream assertion with its strength.
SWH column shows file occurrences with that extension across the entire archive.| Extension | Source | Strength | SWH |
|---|---|---|---|
.cljs | pygments | primary | 1.4M files |
Related languages
LLM-contributed programs
TodoMVC in ClojureScript
Provenance: commit 121864a944 · authored 2025-10-22T11:54:30+02:00 · model openai/gpt-4o-mini · Temp 0.4
(ns todomvc.core
(:require [re-frame.core :as re-frame]
[reagent.core :as reagent]))
(defn todo-item [item]
[:li [:input {:type "checkbox" :checked (:completed item)}]
(:title item)])
(defn todo-list [todos]
[:ul (map todo-item todos)])
(defn main-view []
(let [todos (re-frame/subscribe [:todos])]
(fn []
[:div
[:h1 "Todo List"]
[todo-list @todos]])))
(re-frame/reg-event-db
:initialize
(fn [_ _]
{:todos [{:title "Learn ClojureScript" :completed false}
{:title "Build a Todo App" :completed false}]}))
(re-frame/reg-sub
:todos
(fn [db _]
(:todos db)))
(defn ^:export init []
(re-frame/dispatch [:initialize])
(reagent/render [main-view] (.getElementById js/document "app")))
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)