ClojureScript (cljs) - leotm/react-native-template-new-architecture GitHub Wiki



  • why
    • complex logic
    • REPL workflow
    • Clojure on BE (e.g. bank JVM)
    • break from JS
  • why not
    • extra tooling/build-step
    • gotta mess w tools
  • functional
  • dynamic
    • REPL driven dev
    • change code w/o re-compiling
    • powerful debugging/inspection
  • hosted
    • run on host platform
    • runtimes: JVM, JS VMs (google clojure compiler, V8, etc), CLR (windows)
    • SCI interpreter
    • libs: Lua, Julia, etc
  • design
    • small ez core
  • Lisp
  • immutable
    • still can mutate
  • interop
    • ez change raw js data structures w/o deps, but they help
    • cljs: import js, use exports;
    • js: use cljs vars
  • slow changes

more pragmatic than Haskell for RN


Examples