Fork me on GitHub

hi, I can't get how to make :render-calendar-info foo prop work


i get this error Uncaught Error: Objects are not valid as a React child (found: :div). If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons. Check the render method of OutsideClickHandler`.`


@tomaas You're missing an argumetn on your map-indexed


(map-indexed f coll)


@tomaas Sorry, my slack often doesn't expand the lines even if I click "expand" and I only saw the first 5 lines. 😕


I've been following this tutorial and it doesn't work for me , I mean it kind of works, but instead of my clojurescript code I believe in console I have not mine, but default Hello, world! therefore when I change the hello world text, it does not change in the console. maybe that's too much details and anyone knows a better clojurescript tutorial that I could follow? 🙂


@antonpaisov did you be sure to refresh the browser after restarting it at that point?


(I’m doing that tutorial myself right now.


@michael528 what lesson are you on?


So I’m barely ahead of you. 😉 I had to mess around in 1 with clojurescript/clojure/boot versions to get it to work with whatever I had installed already as well. (Maybe java 9?)


yeah, I think that the setup is the problem


I played around with different lib versions myself and I think problems appeared after that 🙂


even though I've reversed back to versions from the tutorial


 :source-paths #{"src/cljs"}
 :resource-paths #{"html"}
 :dependencies '[[org.clojure/clojurescript"1.9.946"][adzerk/boot-cljs "2.1.4"]])


That’s what I used in #1.


with clojure 1.9 and java 9?


Looks like boot is using clojure 1.7.0 (😳 ), and my java says 1.8


my java is 1.8 too


So I may have been speculating there.


yeah, seems that 1.7.0 it is


but I'm trying out clojurescript and boot-cljs version that you have suggested 🙂


@antonpaisov @wmichaelshirk I started going down that tutorial too but in the end I found it somewhat in-the-weeds and not that easy to follow. For what it is worth, I quit it and just started playing around with the resources on the reagent website directly and have made a lot more progress.


I’m 100% in love with what clojure itself i’ve done. But the tooling (which I know is improving!) is not the most transparent to a noob. 🤓


I’ll keep circling back ’till I get it.


I’m coming from javascript and clojure really deserves a Dan Abramov like character to push hard for the developer experience.


I blame java for most of the difficulties. 😉 They plague me in my day-job also.


So far I’ve found that once you get things working, the actual code is amazing and it Just Works (tm), but getting there is painful.


I know every ecosystem has their own pain. (“JS fatigue” and all that.)


yeah, I'm really interested in cljs when it will be java independent 🙂


a have 0 java experience, so when I get exceptions it hurt my eyes 🙂


@lee.justin.m I'm thinking about doing something like that too 🙂 but I really want to understand why my local setup behaves like it does right now


In school - we’d generate java exceptions that had like 2 or 3 stack frames. Then I started using the Spring Framework. Now my stack traces are 50 or more deep. So while the clojure ones are ugly - I just sigh and say, “That’s Java!”


stackframes can be super useful, but I don’t understand why the tools tend to spit a stackframe at you when something trivial happens like a missing dependency


@antonpaisov I also ended up using tenzing to get my environment going. The guy who maintains it hangs around on slack and is helpful in answering questions. It is a really nice tool.


thank you, will check it out


When you need a server-side API for your SPA app, what do you use?


you mean like serializing json over http on the client side or actually implementing the api on the server side?


@lee.justin.m woops sorry, I edited my message. I mean server-side API (like uploading files, query a database...)


my backend is javascript on node, so others will have to answer. i’m focused on using clojurescript for the front end. i assume that most people implementing backends do it with clojure on the jvm, but maybe people run clojurescript on node (?)


I currently write Ruby, and for the front-end it React on ES6 and on another project it's Elm


I want to give Clojure a serious try since 2013, but somehow still haven't found time for it, but maybe now's the time. given that I'm not so interested in Clojure for the back-end just yet, a friend suggested that I start with CLJS 🙂


I am currently trying to learn the language and port a frontend written in es6/react/redux project to cljs. The tenzing tool got me going, and reagent seems pretty intuitive. So far everything is going pretty smoothly, though I am not looking forward to the day when I have a use a library that hasn’t been wrapped up and have to figure out how to do that myself.


I'm curious about a clojure backend solution


@justinlee interop is pretty painless and its one of the best features of clojure, it shouldn’t take more than 30 minutes exploring in a cljs repl to understand most of it


@noisesmith Interacting with JS objects and methods is super easy. I’m just worried that making some complex react library work with the closure compiler (or whatever it is that needs to be done) is going to be a nightmare. Here’s to hoping it won’t be!


I’ve been working on a clj/cljs app for years now at the day job, and it’s never more difficult than adding some externs and reading some docs (worst case reading some js or following an example). And with newer releases I hear tell we might not even have to write extern files any more.


it can be a little tricky when the mainstream way to use a library uses syntactic features I’m unfamiliar with, but that’s a js difficulty, not a cljs one


that’s great to hear