Upgrading to ClojureScript
Up to now, we’ve been using Clojure exclusively on the server, and plain old JavaScript for our client-side logic. ClojureScript is a dialect of Clojure that compiles to JavaScript. This allows us to use the same language for both the client and the server. Not only that, but it’s even possible to share code between the two.
Let’s look at why we might wish to use ClojureScript for front-end development. If you’ve worked with JavaScript you’ve probably noticed that it has many shortcomings. Let’s look at some of these and how ClojureScript addresses them.
JavaScript syntax is full of quirks and it’s easy to write code that looks like it’s doing one thing, but in fact does something else entirely. Equality checks ...
Get Web Development with Clojure now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.