Idiomatic ClojureScript interface to modern React.js
Bug reports, feature requests and PRs are welcome 👌
There are no versioned releases yet, use deps.edn
to depend on the code via git deps.
Rendering target package, react-native
wrapper.
- Install re-natal
- Initialize Reagent-based project
re-natal init {{AppName}}
- Remove
reagent
from:dependencies
inproject.clj
- Add
[lein-tools-deps "0.4.5"]
to:plugins
inproject.clj
- Add
:middleware [lein-tools-deps.plugin/resolve-dependencies-with-deps-edn]
toproject.clj
- Add
:lein-tools-deps/config {:config-files [:project] :clojure-executables ["/usr/local/bin/clojure"]}
toproject.clj
- Replace
env/dev/env/ios/main.cljs
with contents ofsetup/ios-dev.cljs
, and replace{{app-name}}
with your's apps root ns name - Replace
env/dev/env/android/main.cljs
with contents ofsetup/android-dev.cljs
, and replace{{app-name}}
with your's apps root ns name - Delete
src/reagent
directory - Delete
src/{{app-name}}/db.cljs
,src/{{app-name}}/subs.cljs
andsrc/{{app-name}}/events.cljs
files - Replace
src/{{app-name}}/ios/core.cljs
with contents ofsetup/ios-core.cljs
, and replace{{app-name}}
with your's apps root ns name - Replace
src/{{app-name}}/android/core.cljs
with contents ofsetup/android-core.cljs
, and replace{{app-name}}
with your's apps root ns name - Follow re-natal's README for further instructions