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.
Here's an error I was having for the past few days that I'm a little embarrassed to admit. haha. As it t urns out the error was caused by me not returning anthing from a certain case of the swtich statement in my reducer function.
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:
The posts on this site are written and maintained by Jim Lynch. About Jim...