Fork me on GitHub
#clojurescript
<
2022-05-15
>
popeye16:05:35

I have written below code , but in console is giving Every element in a seq should have a unique :key

(map (fn [row]
             [:thead [:tr
                      (map (fn [name]
                             ^{:key name}
                             [:td.element-size {:scope "row"} name]) (vals row))]]) rows)

popeye17:05:06

Thanks for the response @U11BV7MTK and @U4YGF4NGM, One issue found out is there were the duplicate values in the name , which is nil hence it was causing the issue

popeye16:05:04

I am not getting where to add key again, I tried multiple way! Can anyone tell where I am missing!

dpsutton17:05:00

you have td with keys but not trs with keys.

lilactown17:05:49

Yeah the thead needs a key as well as the td

Baye22:05:41

Hi, beginner here. Thought about putting my question in the #beginner channel, but here it goes Do you know of any complete or comprehensive tutorial on mobile development in Clojure (an example of an app)? Is React-Native the most used stack for Clojure mobile apps (therefore use reagent/Clojurescript)? Is Flutter used if so, is there an equivalent Clojurescript route targeting (or replacing?) dart? I would love to build a semi-simple mobile app, as solo and Clojure beginner: any advice/suggestion is welcome. Thanks

phronmophobic04:05:37

Clojure(script) on mobile can be tough to get started with. I think the most common setup is using clojurescript with either react native or packaged web app. It's doable, but you will probably have to get acquainted with clojurescript and javascript. Additionally, you'll also need to learn a bit about the mobile APIs and their wrappers. It's a less well trodden path, so you may need to fill some gaps on your own. For react native, I think https://github.com/vouch-opensource/krell is a popular option. Krell's readme also mentions some other options. For packaging a web app, I've used https://cordova.apache.org/ in the past, but there are probably others.

👍 1
Baye15:05:05

That's a bummer. I really would like to do thing in Clojure. I just discovered ClojureDart is a new thing...Hope that's easier for beginners but probably no tutorials yet as it is new.

phronmophobic20:05:17

@U01BDCAV7NZ, I wouldn't give up hope quite yet. Are there any requirements that would prevent you from building your app as a web app? Web apps can be quite capable, easier to update, easier to deploy, and there are lots of resources for getting started.

Baye23:05:21

Is that commonly done in Clojure: building a web app and configuring it to work like a mobile app?

phronmophobic23:05:44

I think it's common both inside and outside of the clojure community.

👍 1
the-dress-code01:05:54

Thanks for asking this question, @U01BDCAV7NZ as I am interested in similar. Thanks to @U7RJTCH6J for your answers!