Summing Up

You now know how to create your own variant data types. You can also use option values to work with data that may be invalid without having having null or undefined complicate your life.

We can write a lot of interesting programs at this point, but we have no way of getting user input. That’s the topic for our next chapter, where you’ll find out how to interact with web pages.

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.