# tngio

> **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).

Latest version **0.0.1-b** (published 2021-02-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install tngio
pnpm add tngio
yarn add tngio
bun add tngio
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1-b |
| Published | 2021-02-20 |
| First published | 2021-02-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 2.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Kyle Simpson |
| Maintainers | getify |

## Links

- npm: https://www.npmjs.com/package/tngio
- npm.io page: https://npm.io/package/tngio

## Dependencies (2)

- [domio](https://npm.io/package/domio.md) >=0.9.0
- [monio](https://npm.io/package/monio.md) >=0.24.2

## Recent versions

- 0.0.1-b (latest) — 2021-02-20
- 0.0.1-a — 2021-02-20
- 0.0.0 — 2021-02-20

## README

# tngIO

**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).

## 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](https://github.com/developit/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](http://getify.mit-license.org/). A copy of the MIT License [is also included](LICENSE.txt).

---
_Source: https://npm.io/package/tngio · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
