cljsrn

Ken Huang 2026-04-23T15:43:48.049459Z

Hey guys! Are there any up-to-date resources on how to get started with cljsrn? I wandered around at https://cljsrn.org/ but couldn't figure how. thanks.

2026-04-23T21:40:31.125069Z

What I use is shadow-cljs and reagent. They work pretty well and the setup is easy. You can use other libs ofc. 1. Start a react native project as if you were to use JS/TS 2. Add shadow-cljs to the project (install it on npm, setup the edn you need, etc) 3. Use the target :react-native and mount the root, shadow provides a fn that registers the root for a react native project. Check the shadow-cljs user guide 4. Make sure you properly setup the app root for RN (it points to shadow-cljs' output) 5. Done

Ken Huang 2026-04-24T01:21:58.871859Z

Thanks, that's simple.

Ken Huang 2026-04-24T01:29:28.600699Z

In this setup, is it possible to have a phone emulator on screen so that we can have quick feedback while coding?

2026-04-24T01:30:55.148079Z

Yeah, that is how I work. I do use shadow's hot-reload (faster than RN' fast refresh). You can use an Android emulator or iOS simulator, or even physical phones. The DX is great

Ken Huang 2026-04-24T01:34:27.848149Z

Cool! Shadow-cljs is good for me, I used it before in other projects. I will give it a try.

👍 1