Fork me on GitHub
#cljsrn
<
2018-02-25
>
tianshu07:02:22

I just have a try on shadow-cljs + react-native, I found the experience is really awesome!!

mynomoto13:02:40

@doglooksgood are you using a cljs react wrapper? Expo? I will start a project soon with re-frame and expo and I will try using shadow. Do you have a template somewhere?

tianshu13:02:00

@mynomoto there's one serious problem is that no__ repl to use. how I tried is just create project with react-native init and shadow-cljs init. shadow-cljs has a target called npm-module, the output js can be directly imported from .js (`App.js` or index.js in this case). there's no figwheel needed. React Native built-in HMR works.

tianshu13:02:59

But REPL is important for ClojureScript, it's likely still a lot of work should be done with shadow-cljs so we can have a perfect solution.

mynomoto15:02:37

@doglooksgood can you describe your workflow on cljs? I have been doing webapps for years using only live reload with figwheel or boot as is everyone I know. I use the repl all the time doing clojure on the jvm. I'm really interested on a repl based workflow on cljs(rn).

tianshu15:02:14

@mynomoto you can use repl in cljs just like use it in clojure. you mean how to setup or why use cljs repl?

mynomoto16:02:14

No, the workflow itself. Like do you eval components in the repl and they change on the view you are working on?

tianshu16:02:15

basically, I call functions to modify states.

mynomoto16:02:13

But not the views themselves? Or more clearly, the views only change because of state changes, not changes on the view code?

tianshu16:02:47

I always try to observe if ui is correct by changing the states.

mynomoto18:02:36

@doglooksgood that's helpful. Thank you. I will try doing it this way soon.