# hox

> React store with hooks.

Latest version **2.1.1** (published 2023-07-12) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.1 |
| Published | 2023-07-12 |
| First published | 2019-10-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 44.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | awmleer |

## Links

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

## Dependencies (1)

- [use-sync-external-store](https://npm.io/package/use-sync-external-store.md) ^1.2.0

## Recent versions

- 2.1.1 (latest) — 2023-07-12
- 2.0.0-rc.0 (next) — 2022-07-26
- 2.1.0 — 2022-08-14
- 2.0.0 — 2022-08-10
- 2.0.0-alpha.2 — 2022-06-29
- 2.0.0-alpha.1 — 2022-06-29
- 2.0.0-alpha.0 — 2022-05-24
- 1.1.6 — 2022-02-11
- 1.1.5 — 2021-12-02
- 1.1.4 — 2021-04-27
- 1.1.3 — 2021-03-24
- 1.1.2 — 2020-11-10
- 2.0.0-beta.0 — 2020-07-06
- 1.1.1 — 2020-05-28
- 1.1.0 — 2020-04-07
- … 7 more at https://npm.io/package/hox/versions

## README

# Hox

State sharing for React components.

[![npm version](https://img.shields.io/npm/v/hox.svg?logo=npm)](https://www.npmjs.com/package/hox)
[![npm bundle size (minified)](https://img.shields.io/bundlephobia/min/hox.svg?logo=javascript)](https://www.npmjs.com/package/hox)
![React](https://img.shields.io/npm/dependency-version/hox/peer/react?logo=react)

[English Doc](https://hox.js.org) · [中文文档](https://hox.js.org/zh/)

> This is the documentation for hox v2. If you are looking for the v1 doc, please go [here](https://github.com/umijs/hox/blob/v1/README.md).

## Play Hox in Codesandbox

[![Edit](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/awmleer/todo-app-with-hox/tree/master/)

## Install

```shell
npm install --save hox
# or
yarn add hox
# or
pnpm add hox
```

## Why Hox?

- Direct reuse of existing React knowledge, almost no learning cost, how you write React components, you can write Store
- Designed for flexible refactoring, using the same DSL in Store and components allows you to convert a component's local state into a state shared between components at almost zero cost
- Supports both local and global states, a good balance between flexibility and simplicity
- Excellent performance and TypeScript support

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