reagent-template icon indicating copy to clipboard operation
reagent-template copied to clipboard

Could someone please explain the structure of the generated code?

Open noorvir opened this issue 3 years ago • 1 comments

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.

noorvir avatar Mar 21 '21 06:03 noorvir

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

yogthos avatar Mar 21 '21 19:03 yogthos