Chapter 14Single-Page Apps with React
Front-end frameworks have taken over the application development space. There’s a good chance you are using a library such as React,[68] Vue.js,[69] or Angular[70] to develop the front end of your application. These powerful libraries can all be used to build single-page applications. If you’re using one of these libraries with a real-time Phoenix back end, then you need to have a solution in place to use Phoenix Channels. Luckily, it’s easy to integrate Channels into any of these libraries. In this chapter, we’ll use Phoenix Channels in a React single-page app.
In a single-page app, a user navigates forward and backward without a full-page reload. This allows the app to maintain state throughout the user’s ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access