Skip to content

umijs/hox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b35a8de · Apr 9, 2024
Apr 9, 2024
Apr 9, 2024
Dec 2, 2021
Sep 13, 2022
Apr 9, 2024
Nov 13, 2023
Apr 9, 2024
Jul 12, 2023
Nov 13, 2023
May 24, 2022
Nov 15, 2021
Oct 16, 2019
Sep 13, 2022
May 24, 2022
Nov 13, 2023
Apr 9, 2024
Apr 9, 2024
Jun 29, 2022
Jun 29, 2022
May 15, 2022

Repository files navigation

Hox

State sharing for React components.

npm version npm bundle size (minified) React

English Doc · 中文文档

This is the documentation for hox v2. If you are looking for the v1 doc, please go here.

Play Hox in Codesandbox

Edit

Install

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