Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
H

hox

> 前端框架
Open source

State sharing for React components.

1.5K stars0 likes0 views
WebsiteGitHub

About

State sharing for React components.

Hox

State sharing for React components.

English Doc · 中文文档

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

Play Hox in Codesandbox

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

GitHub Issues· 27 open

View all on GitHub
  • #78

    一直加载中是怎么回事?

    Updated Aug 6, 2024
  • #88

    使用生产环境cdn react.production.min.js,会导致死循环

    Updated Apr 30, 2024
  • #101

    支持Taro吗

    Updated Jan 29, 2024
  • #104

    在next中使用时会报服务端渲染错误,Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.

    Updated Oct 8, 2023
  • #7

    用户反馈:执行时机问题

    Updated May 31, 2023
  • #102

    报错

    Updated May 17, 2023
  • #99

    从 v1 升级, 示例代码 HoxRoot 弄成了 HotRoot

    Updated Nov 6, 2022
  • #98

    非global store互相引用时,报undefined错误

    Updated Sep 26, 2022
  • #84

    API 中是否可以提供 forwardRef 的支持

    Updated Dec 12, 2021
  • #70

    有没有一个api可以重置数据到初始化状态?

    Updated Dec 11, 2021

Highlights

  • •Direct reuse of existing React knowledge, almost no learning cost, how you write React components, you can write Store
  • •Supports both local and global states, a good balance between flexibility and simplicity
  • •Excellent performance and TypeScript support

> Tags

TypeScriptreactreact-hooksreactjsstate-management

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架