Monadic Html

screenshot of Monadic Html

Tiny DOM binding library for Scala.js

Overview

monadic-html is a tiny DOM binding library for Scala.js designed with the main objectives of providing a friendly syntax for frontend developers (XHTML) and fast compilation speeds without the use of macros. The core value propagation library is available separately for both platforms as monadic-rx, with an optional integration with cats as monadic-rx-cats. Inspired by Binding.scala and Scala.rx, this library simplifies handling mutable state and automatic view updates.

Features

  • Friendly Syntax: Provides a user-friendly syntax for frontend developers using XHTML.
  • Fast Compilation: Offers fast compilation speeds without the reliance on macros.
  • Value Propagation: Supports value propagation with methods like map, flatMap, and merge for creating new reactive values.

Summary

monadic-html is a Scala.js library that simplifies DOM binding by providing a friendly syntax for frontend developers. By leveraging concepts like Rx and Var, the library enables automatic updates to DOM elements based on changes to reactive values. With its focus on precise data-binding and integration with cats, monadic-html offers an efficient solution for handling mutable state in frontend development.