Fork me on GitHub
#cljsrn
<
2023-12-03
>
rende1110:12:41

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

rende1111:12:07

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!"]]