This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-12-18
Channels
- # adventofcode (326)
- # aws (1)
- # beginners (67)
- # cider (52)
- # cljs-dev (5)
- # cljsrn (5)
- # clojure (104)
- # clojure-art (2)
- # clojure-austin (34)
- # clojure-france (12)
- # clojure-greece (38)
- # clojure-india (2)
- # clojure-italy (6)
- # clojure-spec (11)
- # clojure-uk (32)
- # clojurescript (51)
- # core-async (5)
- # cursive (11)
- # data-science (5)
- # datascript (3)
- # datomic (3)
- # defnpodcast (7)
- # fulcro (26)
- # graphql (10)
- # hoplon (1)
- # instaparse (2)
- # jobs (1)
- # klipse (3)
- # lumo (13)
- # off-topic (50)
- # om (2)
- # onyx (19)
- # parinfer (1)
- # pedestal (4)
- # re-frame (18)
- # ring-swagger (1)
- # spacemacs (1)
- # specter (42)
- # sql (9)
- # uncomplicate (18)
- # unrepl (13)
i get this error react-dom.inc.js:17985 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 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 https://github.com/magomimmo/modern-cljs/blob/master/doc/second-edition/tutorial-02.md 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?
yep I did
@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
(set-env!
:source-paths #{"src/cljs"}
:resource-paths #{"html"}
:dependencies '[[org.clojure/clojurescript"1.9.946"][adzerk/boot-cljs "2.1.4"]])
with clojure 1.9 and java 9?
my java is 1.8 too
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ām coming from javascript and clojure really deserves a Dan Abramov like character to push hard for the developer experience.
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.
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
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.
@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