Cool Things You Can Do with First-Class Modules in ReasonReact
This post is about not so widely known advanced feature of the language, that helps to build handy abstractions over ReasonReact components.
ReasonML: Safe Routing
Once you start using a language with sound and expressive type system, to fully leverage its advantages you should push loosely typed entities to the edges of application. One such entity is the URL.
ReasonML: Safe Identifiers
Pretty much each entity in our apps has special field that uniquely identifies it. Usually, it's called id. Type of such identifier can be int or string (or any other serializable data type).
ReasonML: Eliminating illegal state
Next thing I’d like to share is how ReasonML helps in making illegal states unrepresentable in our apps.
ReasonMl Modules
Recently, I’ve been investing quite a lot in learning ReasonML and TBH I’m pretty much dead as JS developer right now because I’ve seen the better world. Much better one.