tngio
v0.0.1-b
Published
**tngIO** ('tiNG-ee-yo) is a framework that implements React-like Hooks on top of the IO monad (from [Monio](https://github.com/getify/monio)). This project is an evolution of [TNG-Hooks](https://github.com/getify/tng-hooks).
Downloads
2
Readme
tngIO
tngIO ('tiNG-ee-yo) is a framework that implements React-like Hooks on top of the IO monad (from Monio). This project is an evolution of TNG-Hooks.
Overview
The "big idea" here is that we can achieve a more FP-adherent approach to declarative-component UI if we model state management (like useState(..)
) via the IO (Reader) monad, and effects (like useEffect(..)
) modeled as asynchronous IO (Task) side effects. By modeling component capabilities as IO monad values, we can use typical FP techniques (monadic-style) for composition and update of the UI.
Unlike React which uses JSX, tngIO uses htm for declarative component-markup DOM.
Think of tngIO as the "FP version" of a framework like React.
License
All code and documentation are (c) 2021 Kyle Simpson and released under the MIT License. A copy of the MIT License is also included.