Reagent is an awesome marriage of a React, an industry standard web front-end based on immutable component state, with ClojureScript, a functional lisp programming language with a terse syntax that heavily leverages immutable data. This post is about how to easily create a Reagent project that will get you up and running with familiar tooling similar to other React and NodeJs.
This is an awesome video out there on Youtube that covers ClojureScript development from the very basics to more advanced topics like building an actual React application in ClojureScript using the Reagent library. The video has a interesting Socratic style where one guy acts as the novice, asking the questions that a viewer may be wondering. The other, although he humbly says that he's not an expert, plays the roles of Socrates, explaining the answers to the questions asked. Overall, I'd recommend it if you're just getting into ClojureScript since it exposes you to some of the syntax, lingo, tools, and frameworks of the ClojureScript world.
Let me preface this post by saying that I'm really not a ClojureScript developer (nor am I really even a Clojure developer). I've gone through a few episodes where I looked at Clojure, but I always deemed it as too crazy to actually be a viable programming language... until recently. There's something especially magical about Clojure's hot reload that makes it better than other hot reload tools; actually, two things:
Leiningen basically gives you a REPL for running and evaluating Clojure from the command line. This is the "de facto" way to get up and running with Clojure, and it works fine. I've installed this a few times now on Mac OS, and every time I have to go look up how to do it again (scroll to the bottom for links to other tutorials on this subject). I figured writing a tutorial myself might burn it into my memory better, and also it might help out some other lucky duck that wants to start using Clojure.
The posts on this site are written and maintained by Jim Lynch. About Jim...