This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
Also, should I keep separately cljs src folder and react native generative files? I found different examples of code organization. Any pros and cons? It will affect build size or something like this? like this
app
└── src/
└── app
├── core.cljs
└──react-native-app/
└── index.js
└── other-stuff
or
app
└── src/
└── app
├── core.cljs
├── index.js
└── other-stuff
Another question, what pros, cons, benefits of this approaches?
(def view (r/adapt-react-class (.-View ^js react-native)))
(def text (r/adapt-react-class (.-Text ^js react-native)))
;; 1
[view
[text "Hello!"]]
;; 2
[:> View
[:> Text "World!"]]
:>
is more like syntax sugar equivalent to adapt-react-class
https://github.com/reagent-project/reagent/blob/master/doc/InteropWithReact.md#creating-reagent-components-from-react-components