This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-10-13
Channels
- # beginners (67)
- # boot (18)
- # cider (28)
- # clara (11)
- # cljs-dev (1)
- # cljsrn (7)
- # clojure (134)
- # clojure-dev (2)
- # clojure-dusseldorf (1)
- # clojure-greece (1)
- # clojure-italy (13)
- # clojure-losangeles (2)
- # clojure-nl (2)
- # clojure-russia (2)
- # clojure-spec (2)
- # clojure-uk (52)
- # clojurebridge-ams (1)
- # clojurescript (78)
- # core-async (1)
- # core-matrix (2)
- # cursive (12)
- # data-science (22)
- # emacs (10)
- # events (1)
- # fulcro (28)
- # graphql (4)
- # hoplon (16)
- # jobs (1)
- # lein-figwheel (3)
- # leiningen (3)
- # nyc (1)
- # off-topic (19)
- # onyx (70)
- # parinfer (2)
- # pedestal (1)
- # portkey (9)
- # protorepl (2)
- # re-frame (16)
- # reagent (39)
- # ring-swagger (5)
- # rum (1)
- # schema (2)
- # shadow-cljs (216)
- # specter (5)
- # sql (1)
- # uncomplicate (4)
- # unrepl (6)
- # vim (25)
- # yada (5)
The re-frame README.md is amazing. I have a hard time learning stuff normally, and although that is only an overview, I could understand it and it felt empowering. Thank you to whoever took the time to write it.
@anantpaatra that's kind of you to say, thanks. My goodness good docs take me a long time to write. Hopefully the rest of the docs are as useful.
Good docs are invaluable, particularly conceptual docs that teach you the architectural concepts. I have found the re-frame docs to be excellent in this regard. Plus, there’s some wit baked in.
I could feel that it was something sincere and well thought out. Please, keep writing them!
Hi there! Being a complete newbie to CLJS ecosystem, I’m trying to use reagent 1.8.0-alpha1 with re-frame and depend on a third party react component library using :npm-deps
. I’m kinda lost here. Is it even possible ?
@szoerner Sure it’s possible, this has been passed around a lot recently. Really great resource on how to wrap React components with Reagent. https://www.opensourcery.co.za/2017/02/12/using-semantic-ui-react-with-re-frame/
If you have to do a LOT of wrapping! I suggest taking a look at the soda-ash source code as it wraps all of the semantic-ui-react components via macros https://github.com/gadfly361/soda-ash
@kasuko thx, but as far as I can tell, this takes the approach of using cljsjs
and in my case the library I want to use is not in the packages
So what you want to do is set up your :npm-deps
so that the JS project is loaded into your clojurescript
then you should be able to follow the article which takes the react components from the :npm-deps
to wrap them in Clojurescript components
Ok, thx. I’ll post a stripped down version of the project. Because doing that is clearly not working for me, probably due to my lack of knowledge
Interesting, I was experimenting with react-notification
library. It worked when I tried requiring with "react-notification"
instead of symbol version
In all my previous unsuccesful attemps I was using (:require [react-notification])
form
Ahh, now the min build with advanced optimizations fails. Here is the dummy project https://github.com/selimober/refreact it’s basically a re-frame template generated with minor mods on reagent version and :npm-deps