3 ms·
What's the recommended stack for doing front end development with clojure these days?
by cageface 2y ago
What's the recommended stack for doing front end development with clojure these days?
- rads 2y agoHere is where I'd start for the path of least resistance while still using the most modern libraries: - Dependency management: https://clojure.org/guides/deps_and_cli https://clojure.org/guides/deps_and_cli - Clojure->JS compiler: https://github.com/thheller/shadow-cljs https://github.com/thheller/shadow-cljs - React integration: https://github.com/reagent-project/reagent https://github.com/reagent-project/reagent - Global state management (optional): https://github.com/day8/re-frame https://github.com/day8/re-frame You might also want a CSS framework. There are some options to write CSS in ClojureScript, but I prefer TailwindCSS which isn't a Clojure-specific thing and it works fine out-of-the-box with `.cljs` files. You can swap out Reagent for Helix, which is a lower-level and faster wrapper for React. That said, Reagent does work with React 18 just fine and there's tons of docs for it, so jumping to Helix first is a premature optimization IMO, especially if you're new to Clojure.