Fork me on GitHub
#clojurescript
<
2018-04-14
>
pvrv05:04:11

Hi 🙂 I don't know if this is the appropriate place to ask... Adding react 15.5.4 with webpack through foreign libs . reagent 0.7. all is fine. But thinking about react components that need react 16 while reagent seems to not work with 16, even in 0.8 version it is under conditions. React native 0.53 for example expects react 16, I think. Re-natal uses 0.53. Or maybe everything can work with react 15 ?! :thinking_face:

nenadalm14:04:21

I am using reagent 0.7.0 with react 16.3.1 without issues.

pvrv08:04:02

@U662GKS3F thanks for responding! When I try 16.3.1, the views are rendered, but in the console I get two errors: cannot read property node of undefined - react-highlight.inc.js. and. Component must not be nil - at core.cljs. And i left rendering only one div and still...

nenadalm13:04:21

any chance you're using re-frame-10x? Last version that works for me is 0.2.0. I also have some react-highlight issues when upgrading re-frame-10x.

pvrv17:04:40

Yes ! You are the man! I used 10x version 0.3 which had hotfix 0.3.01 for react16 and upgraded to 0.3.2 and no errors. I had to look into dependenties... Thanks

pesterhazy08:04:53

I think our re-natal project works fine with React 16 and reagent

dabrazhe18:04:56

Is React a good approach for clojurescript anyway? Should there not be another one that fits better in functional programming?

restenb18:04:02

react fits quite well in functional programming

dabrazhe18:04:27

in what way ?

mkeathley21:04:16

Immutability and composability