O'Reilly logo

Learning ClojureScript by Allen Rohner, Rafik Naccache, W. David Jarvis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required