Chapter 4. Demonstrating Nonfunctional Reactive Programming – A Live Example

In this chapter, we will be looking at a live example that incorporates some principles of reactive programming with ReactJS. Some portions of the program remain imperative as a port of something that was previously written in jQuery after other ports from HP-28S RPN and Unix C, but ReactJS's power still shines through, even with code that, like much of the code in the real world, has gone through multiple iterations. We will briefly look at the HTML requirements of the web page, before going through the real meat in JavaScript. The web page offers a port of a video game originally developed on an HP-28S graphing scientific calculator, and retains much of the calculator's ...

Get React: Building Modern Web Applications 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.