Fork me on GitHub
#reagent
<
2017-01-01
>
Yehonathan Sharvit03:01:30

Take a look at this article (and please retweet if you like it) https://twitter.com/viebel/status/815401454257274880

pesterhazy09:01:36

@viebel, looks great. I'm going to take a stab at a klipsenabled blog post about reagent

pesterhazy09:01:33

I noticed that, in the blog post, if you change, e.g., the string "Weight", the comp doesn't update

pesterhazy09:01:47

I'm guessing that's because you don't re-run r/render on code changes

pesterhazy09:01:22

which makes sense I think, at least if you want to demo how re-rendering works

Yehonathan Sharvit09:01:59

1. I fixed the broken link - Thx for letting me know

Yehonathan Sharvit09:01:54

2. in order to re-render the component, you have to re-evaluate the reagent snippet by either modifying its code (e.g with a whitepace) or pressing Ctrl-enter

Yehonathan Sharvit09:01:08

3. what are you going to demonstrate in your klipse-enabled blog post?

pesterhazy09:01:06

ad 2, could you make it work with Cmd-Enter on macs as well? That's what I tried before asking.

pesterhazy09:01:30

ad 3, that's what I'm trying to figure out

kim010:01:33

Morning folks … I’m new to Clojure/script .. Before I engage on a long learning path .. Just double checking that reagent supports Web React as well as React-Native ?

kim010:01:21

The main readme on reagent page, has no mention of “native” nor “android” ..etc .. which I find weird!

pesterhazy11:01:25

Yes it does, absolutely

pesterhazy11:01:46

Check #cljsrn

pesterhazy11:01:26

Search for boot-react-native or re-natal

kim011:01:31

when I checked .. re-natal is too focused on native .. and reagent was too focused on web react 😄

kim011:01:49

but thanks .. glad to know both web and native are well supported

kim011:01:41

For the react-web .. I wonder if I can just pick a react component (say, date-picker, or calendar …etc) .. and use it from cljs without knowing much JS (which I don’t)

pesterhazy11:01:49

that's a misunderstanding

pesterhazy11:01:25

reagent is more or less agnostic as to web vs native

pesterhazy11:01:05

re-natal is focussed on native of course, that's the point 🙂

kim011:01:14

I’m a bit confused .. what does re-natal add .. afaict re-agent can do both web and native .. is re-natal mostly a project template generator (like yo from js land?)

pesterhazy11:01:08

have a look at its website. it handles interaction with the packager, reloading and so on

kim011:01:44

:thumbsup:

kim011:01:08

pesterhazy .. can you confirm whether grabbing & using 3rd party react-web components is supported (i.e. without wrapping them in cljs)

pesterhazy11:01:38

it is supported

kim011:01:43

awesome!

kim011:01:57

Looking forward to walking the path to this promised land heh

pesterhazy11:01:26

search fo "Better interop" here for using 3rd party react components: http://reagent-project.github.io/news/news060-alpha.html

kim011:01:42

That looks very promising .. You guys need better marketing heh