This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-19
Channels
- # alda (1)
- # announcements (2)
- # babashka (14)
- # beginners (30)
- # biff (12)
- # clerk (2)
- # clj-kondo (18)
- # clj-on-windows (1)
- # clojure (98)
- # clojure-europe (9)
- # clojure-gamedev (4)
- # clojurescript (39)
- # conjure (1)
- # data-science (1)
- # emacs (25)
- # events (1)
- # fulcro (1)
- # hyperfiddle (13)
- # lsp (3)
- # malli (1)
- # membrane (10)
- # off-topic (12)
- # reagent (7)
- # scittle (21)
- # shadow-cljs (10)
(defn sample-component []
[:div
[:p "I am a component!"]
[:p.someclass
"I have" [:strong "bold"] "text."]])
(defn mountit []
(r/render [sample-component]
(.-body js/document)))
(defn init []
(println "Hello world")
(sample-component)
(mountit))
returns
Reagent.core/render function was moved to reagent.dom namespace in Reagent v1.0.
on build
reagent.core/render is deprecated
halp✅ 2
Think I figured it out, was calling reagent.core instead of reagent.dom
Error: Target container is not a DOM element.
Figured out, needed an index.html of the form
<head>
<title>
title
</title>
</head>
<body>
<script src="./js/invoice-frontend.js"></script>
</body>
</html>
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/main/invoice/frontend/*.{cljs}',
'./invoices/invoice-frontend/js/*.{js}',],
theme: {
extend: {},
},
plugins: [],
}
seems to be unable to pull :class tags from in src/main/invoice/frontend/main.cljs. Anyone here using tailwind with cljs?✅ 2
No clue whether these projects are relevant to your particular problem, but at least they're relevant to the question: • https://github.com/jacekschae/shadow-cljs-tailwindcss • https://github.com/teknql/shadow-cljs-tailwind-jit • https://github.com/wilkerlucio/tailwind-garden Somewhat relevant: • https://github.com/green-coder/girouette • https://github.com/mainej/headlessui-reagent
👍 4
Thanks, was able to get it working by comparing my config to shadow-cljs-tailwindcss repo
👍 2