Fork me on GitHub
#reagent
<
2019-12-20
>
Vít Kalisz17:12:02

Hi, I have a more or less follow up error, which I don't know what to do about. I have the attached stacktrace and I call this function

(defn md-button []
  [:> Button {:variant "outlined"
              :color "secondary"
              :on-click #(js/console.log "clicked")} "button"])

Vít Kalisz18:12:20

@U2FRKM4TW Don't you know more?

p-himik09:12:50

Nope, sorry. But I assume you got it sorted out given that you've found that StackOverflow post.

lilactown17:12:26

your error does not appear to be in the code you pasted, but probably in the Button component

Vít Kalisz18:12:05

Rather in the usage of Button Material UI component.

lilactown17:12:49

what is Button referring to?

Vít Kalisz17:12:15

Button is a Material-UI component included above threw

["@material-ui/core/Button" :default Button]

Vít Kalisz18:12:12

I found this https://stackoverflow.com/questions/57930690/failed-prop-type-forwardrefbutton-prop-type-component-is-invalid-warning which seems to be quite similar but the problem persist even after changes in package.json. My hypothesis is, that I somehow don not use the Material-UI component correctly.