This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-02-29
Channels
- # announcements (1)
- # babashka (5)
- # beginners (64)
- # cider (9)
- # circleci (11)
- # clojure (80)
- # clojure-uk (25)
- # clojured (6)
- # clojurescript (35)
- # css (1)
- # cursive (3)
- # datomic (6)
- # fulcro (10)
- # graphql (3)
- # kaocha (2)
- # leiningen (3)
- # lumo (3)
- # malli (10)
- # meander (24)
- # off-topic (17)
- # re-frame (10)
- # reagent (2)
- # ring (1)
- # shadow-cljs (27)
- # spacemacs (3)
- # tree-sitter (3)
Hello friends, my view is compiled but not showing anything at all when i create my-view
function.
(ns my-app.views
(:require
[re-frame.core :as re-frame]
[re-com.core :as re-com]
[my-app.subs :as subs]
))
(defn title []
(let [name (re-frame/subscribe [::subs/name])]
[re-com/title
:label (str "Hello from " @name)
:level :level1]))
(defn my-panel
[]
[re-com/input-text
:width "300px"
:placeholder "input your string here"])
(defn main-panel []
[re-com/v-box
:height "100%"
:children [[title]
[my-panel]]])
Am i missing something??Sorry, the view is my-panel. I made a mistake with the name
And sorry for the pin, it was untencional
Ok, i forgot that. Thank you
Your panel doesn’t include any information where the value should go. So title knows to show the name sub but it’s not clear that you’ve hooked up the input to put its value there