Fork me on GitHub
#reagent
<
2019-04-26
>
caleb.macdonaldblack02:04:18

Any way to do styled components with reagent?

dpsutton03:04:58

Someone has a lib out there. Let me check

Bravi09:04:40

has anyone figured out how to use hooks with reagent yet?

Bravi09:04:13

it seems like all the libraries are moving to using hooks these days

Bravi09:04:28

I mean react libraries

Bravi10:04:12

oh wow.. 😄 didn't think of that

juhoteperi10:04:36

And another new documentation page about controlled inputs and the workaround Reagent uses: https://github.com/reagent-project/reagent/blob/master/doc/ControlledInputs.md

Bravi11:04:28

thank you 🙂 that's very helpful

lilactown14:04:26

Docs are incredibly helpful! Thanks for creating those @juhoteperi

argvader16:04:39

Anybody have issues with advanced compiler optimizations enabled? I am getting on error which appears to be from the react_dom render method name being munged. Here is the error: Uncaught TypeError: Cannot read property ‘$cljs$core$IFn$_invoke$arity$3$’ of undefined at $reagent$dom$render_comp$$ Here is the pseudo-names code output: return $reagent$dom$global$0module$0react_dom$$.$render$.$cljs$core$IFn$invoke$arity$3$?$reagent$dom$global$0module$0reactdom$$.$render$.$cljs$core$IFn$invoke$arity$3$($G_8174$$,$container$jscomp$1$$,$G__8176$$)

argvader16:04:35

Using version 0.8.1 of Reagent and including cljsjs or react and react-dom

lilactown16:04:34

it looks like you're using shadow-cljs. you have react and react-dom installed via NPM right?

argvader16:04:53

Im sorry for the mundane questions. I am using boot and the boot-cljs plugin. I believe its using clojurscript 1.10.520 which i include as a dependency. I have read briefly on shadow-cljs.. is this a better approach. Again sorry for issues i am getting back into cljs dev after long hiatus

lilactown16:04:51

ah sorry, no idea about boot / boot-cljs 😞

argvader16:04:07

no worries thanks again.

Andrew Watts02:05:38

I'm also seeing this problem. I'm also using boot-cljs

Andrew Watts03:05:35

Adding :infer-externs true to the :compiler-options appeared to fix it, but I'm leery of that solution

Andrew Watts03:05:35

Interestingly, it does not appear to happen using lein-cljsbuild

Andrew Watts04:05:25

Also, it appears to happen on Java 11 but not Java 8.