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.
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
Thanks, that's simple.
In this setup, is it possible to have a phone emulator on screen so that we can have quick feedback while coding?
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
Cool! Shadow-cljs is good for me, I used it before in other projects. I will give it a try.