Clojurescript in 2024

Clojurescript and the state of browser technology in 2024

Using Clojurescript in 2024

For a project with advanced user interactivity in the browser we choose Clojuresript in our SPA stack:

  • Clojurescript is still the best language for interactive development, Reagent and Re-frame are IMHO the simplest way to build SPA.
  • the domain logic is coded in Clojure and we export it to the browser, and also use it on the backend.
  • The backend is in Clojure, we expose rich domain data structure as Transit automatically from our API endpoints.

React and Tailwind are two technologies frequently used in the libraries of the browser ecosystem. A simple integration with these two technologies is therefore a must have. I will take as an example

The setup: Shadow-cljs and React-compatible library - Reagent

Existing React Component - with Hooks - Integration

Tailwind CSS Integration

Conclusion