reagent-template
reagent-template copied to clipboard
Could someone please explain the structure of the generated code?
As a newbie, I don't understand what I'm supposed to do with folders like clj
, cljc
and cljs
. Most tutorials and docs online don't tell you how to structure your project. I think knowing why the project is structured the way it is would be a valuable learning resource to starters like me.
Each folder designates the type of source files:
-
clj
folder contains source files that are compiled to JVM bytecode and run server-side -
cljc
folder contains source files that cross-compile to both JVM bytecode and Js code that runs on the client -
cljs
folder contains source files that compile to Js and runs client-side