Fork me on GitHub
#re-frame
<
2017-10-13
>
felipebarros00:10:55

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.

mikethompson00:10:14

@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.

dgr00:10:18

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.

felipebarros00:10:00

I could feel that it was something sincere and well thought out. Please, keep writing them!

selim16:10:54

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 ?

kasuko17:10:16

@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/

kasuko17:10:03

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

selim18:10:26

@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

kasuko18:10:12

cljsjs is just a way for someone to provide the :npm-deps for you.

kasuko18:10:50

So what you want to do is set up your :npm-deps so that the JS project is loaded into your clojurescript

kasuko18:10:55

then you should be able to follow the article which takes the react components from the :npm-deps to wrap them in Clojurescript components

selim18:10:17

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

kasuko18:10:47

I just spent a ton of time doing just that so we should be able to figure it out.

selim20:10:45

Interesting, I was experimenting with react-notification library. It worked when I tried requiring with "react-notification" instead of symbol version

selim20:10:50

In all my previous unsuccesful attemps I was using (:require [react-notification]) form

selim21:10:51

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