This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-31
Channels
- # beginners (64)
- # boot-dev (5)
- # calva (2)
- # clojars (2)
- # clojure (27)
- # clojure-europe (2)
- # clojure-india (1)
- # clojure-italy (30)
- # clojure-nl (3)
- # clojure-spec (46)
- # clojure-uk (19)
- # clojurescript (38)
- # code-reviews (2)
- # cursive (2)
- # datomic (15)
- # events (2)
- # graphql (3)
- # kaocha (1)
- # leiningen (5)
- # lumo (2)
- # off-topic (29)
- # perun (1)
- # re-frame (40)
- # reagent (5)
- # rum (3)
- # spacemacs (11)
- # specter (4)
- # tools-deps (4)
I've merged several PRs to master and pushed 0.9.0-SNAPSHOT to Clojars: https://github.com/reagent-project/reagent/blob/master/CHANGELOG.md
I still have some ideas on refactoring create-class
to match React ES6 classes more closely, as the current implementation doesn't allow providing custom static methods or properties, but I might leave those changes to a later release.
Hey, folks. Just learning re-frame for a simple informational site. I'm using Material-UI for my styling and having some difficulty with styles being overridden by duplicate elements being created. Specifically, when I'm using the Grid component it will create an element that I stated with the options I stated, but will create another one above it that has the default Material-UI style options. Why is this happening and how do I stop it from creating the duplicate elements?
Even stranger is that the top-most parent correctly creates the <WithStyles(Grid) ... >
with the options I stated and a child of <Grid ...>
with the options I stated. It's further down the tree that it flips around where it is a <Grid ...>
with default options that overrides the <WithStyles(Grid) ...>
.
(defn home-content []
(let [name (re-frame/subscribe [::subs/name])]
[:<>
[:> Grid
{:container true
:direction "row"
:justify "center"
:spacing 8}
[:> Grid
{:container true
:direction "row"
:justify "center"
:xs 12}
[:> Grid
{:item true
:xs 12}
[appbar-comp]]]
[:> Grid
{:container true
:direction "row"
:justify "center"
:spacing 8
:xs 12}
[:> Grid
{:item true
:xs 6}
[:> Card
{:style style-card}
[:> CardMedia
{:image "../../resources/public/images/logo-300_240.png"}]
[:> CardContent
[:> Typography
{:component "p"}
"Test"]]]]
[:> Grid
{:item true
:xs 6}
[:> Card
{:style style-card}
[:> CardContent
[:> Typography
{:component "p"}
(str "Hello from " @name ". This is the Home Page.")]]]]]]]))
So I am creating a container of two containers, with the first container only containing the app bar and the second container containing the cards. That's how it is documented on the Material-UI docs so I don't know where the issue is.