Chapter 8Connecting to JavaScript

In this chapter, you’ll learn how to interoperate with existing JavaScript code by calling functions written in JavaScript and by creating and accessing JavaScript objects. This lets your ReasonML programs make use of the enormous number of libraries and modules written in JavaScript. By the end of this chapter, we’ll have developed a program that involves interoperating with JavaScript on both the client and server, using the shirt orders that we looked at in Putting Modules to Work.

images/interop_images/table_statistics.png
  • We’ll set up an Express[29] server and send the client an HTML page with a form.

  • The client will select the information they ...

Get Web Development with ReasonML 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.