Chapter 5. Building Single Page Applications

In this chapter, we'll build a simple (Single Page Application (SPA) using Om and React.js. Om is a ClojureScript library that wraps React.js, a library released by Facebook. ClojureScript's power and expressiveness make it an excellent choice for building web applications. In this chapter, we'll cover the following:

  • Om and React.js
  • Routing using bidi
  • HTML5 history and pushState
  • Working with the REST APIs using AJAX

Understanding Single Page Appliactions

An SPA is a way of building a web application. In a traditional application, the server returns an HTML response containing the page content. Visiting another page on the application requires an HTTP request to the server, which returns the HTML for the second ...

Get Learning ClojureScript 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.