awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索Open-source alternativesSelf-hosted software博客网站地图
项目关于How we rank媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·

8 个仓库

Awesome GitHub RepositoriesReact State Primitives

Reusable state management patterns such as counters, lists, and synchronized storage for React.

Distinct from Complex State Management: The candidates focus on CSS-only state, store-based complex data, or memory cleanup rather than reusable hook primitives

Explore 8 awesome GitHub repositories matching web development · React State Primitives. Refine with filters or upvote what's useful.

Awesome React State Primitives GitHub Repositories

用 AI 发现最棒的仓库。我们将通过 AI 为您搜索最匹配的仓库。
  • streamich/react-usestreamich 的头像

    streamich/react-use

    43,974在 GitHub 上查看↗

    react-use is a collection of reusable state and effect hooks for managing common logic in React applications. It serves as a comprehensive library for implementing state management patterns and wrapping various browser APIs into consistent hook interfaces. The project provides a specialized toolkit for DOM interaction and browser API integration, allowing components to track element dimensions, manage cookies, and monitor hardware sensors. It includes a suite of animation and timing utilities for physics-based numeric interpolation and frame-synced state updates. Beyond basic state managemen

    Implements complex state patterns including counters, lists, and local storage synchronization via hooks.

    TypeScript
    在 GitHub 上查看↗43,974
  • ruanyf/react-demosruanyf 的头像

    ruanyf/react-demos

    16,471在 GitHub 上查看↗

    This project is a collection of practical code samples and demonstrations for building user interfaces with React. It serves as a set of examples illustrating common interface patterns, state management techniques, and the implementation of modular, reusable components. The repository provides specific demonstrations for several core development areas. These include samples for retrieving and rendering asynchronous data from external APIs, managing component lifecycles during mounting and unmounting, and handling internal state to sync form inputs. It also includes guides for direct document

    Provides interactive examples of syncing form inputs with internal state to trigger UI re-renders.

    JavaScript
    在 GitHub 上查看↗16,471
  • hiteshchoudhary/chai-aur-reacthiteshchoudhary 的头像

    hiteshchoudhary/chai-aur-react

    12,808在 GitHub 上查看↗

    This project is an educational course and a collection of frontend projects designed to teach the core concepts and architecture of the React library. It serves as a practical guide for building modular user interfaces through a series of hands-on project builds. The repository includes a technical implementation of a custom React renderer, demonstrating how to transform JSX elements into a document object model. It further provides examples of state management, specifically illustrating how to share global data across a component tree using the provider pattern to avoid property drilling. T

    Demonstrates the use of reusable state management patterns to distribute data across a component tree.

    JavaScript
    在 GitHub 上查看↗12,808
  • downshift-js/downshiftdownshift-js 的头像

    downshift-js/downshift

    12,295在 GitHub 上查看↗

    Downshift is a headless UI component library and framework for React that provides the state and interaction primitives necessary to build accessible autocomplete, combobox, and select dropdown components. It functions as a WAI-ARIA UI framework, generating the required ARIA attributes and keyboard event handlers to ensure screen reader compliance without providing any default styling. The library utilizes a headless component pattern to decouple interaction logic from the visual presentation. It manages complex state transitions through reducers and synchronizes internal UI state with extern

    Ships reusable React state primitives and hooks for synchronizing internal UI state with external data.

    JavaScriptaccessibleautocompleteautosuggest
    在 GitHub 上查看↗12,295
  • juliencrn/usehooks-tsjuliencrn 的头像

    juliencrn/usehooks-ts

    7,834在 GitHub 上查看↗

    usehooks-ts is a comprehensive collection of reusable TypeScript-based hooks designed for managing state, DOM events, and browser API interactions within React applications. It provides a typed library of functions to handle common frontend patterns and side effects. The project distinguishes itself by offering specialized hooks for browser integration, including tools for interacting with the system clipboard, managing local and session storage persistence, and loading external scripts. It also includes utilities for responsive UI development, such as tracking media queries, window dimension

    Provides reusable state management primitives for common patterns like counters and toggles.

    TypeScripthookhooksmdx
    在 GitHub 上查看↗7,834
  • steven-tey/precedentsteven-tey 的头像

    steven-tey/precedent

    5,098在 GitHub 上查看↗

    Precedent 是一个 Next.js 应用程序启动器和组件库,提供了一套预配置的工具和原语,用于构建生产就绪的 Web 界面。它作为一个工具包,用于引导集成身份验证、分析和一系列自选 UI 组件的应用程序。 该项目的特色在于 Tailwind CSS UI 套件,它结合了无障碍原语和动画库来创建精致的界面。它包括一个服务器端图像生成器,用于在网络边缘以编程方式创建动态社交分享图像和预览视觉效果。 该库涵盖了广泛的功能,包括用于用户身份验证和会话管理的第三方身份集成、用于跟踪访问者指标的隐私优先网站分析,以及一系列用于管理客户端状态、本地存储和元素可见性的自定义 React Hook。它还提供了用于格式化文本和数字的实用程序。

    Provides reusable state management patterns and logic primitives for React.

    TypeScriptauthjseslintframer-motion
    在 GitHub 上查看↗5,098
  • mweststrate/use-immermweststrate 的头像

    mweststrate/use-immer

    4,536在 GitHub 上查看↗

    use-immer 是一个 React 状态管理实用程序,提供了一个用于更新不可变状态的自定义 Hook。它允许修改数据的临时草稿版本,以计算下一个状态转换。 该工具通过允许直接在草稿上进行修改,简化了复杂状态的管理,消除了使用展开运算符手动复制嵌套对象或数组的需要。这种方法确保了生成新的不可变快照,以实现可预测的状态更改。 该库涵盖了更新深度嵌套状态的功能,并支持通过 Reducer 处理状态更改。

    Simplifies state updates in functional components by applying mutations to a temporary draft.

    TypeScript
    在 GitHub 上查看↗4,536
  • nikgraf/react-hooksnikgraf 的头像

    nikgraf/react-hooks

    1,131在 GitHub 上查看↗

    这是一个可重用逻辑的精选库,旨在简化 Web 应用中的状态管理和组件行为。它作为一个前端开发工具包,提供了一系列社区驱动的 Hooks,用于处理组件生命周期中的常见任务。 该库的独特之处在于提供了一个共享解决方案的集中式仓库,用于管理复杂的数据和界面交互。通过为浏览器接口、网络数据请求和用户界面组件提供预构建的抽象,它允许开发者用模块化的函数式逻辑替换重复的样板代码。 该集合涵盖了广泛的功能,包括异步数据的同步、原生浏览器功能的集成以及标准界面行为的封装。这些工具旨在帮助开发者识别并实现跨项目管理状态和副作用的一致模式。

    Provides reusable hook primitives to manage complex component data and application state predictably.

    JavaScript
    在 GitHub 上查看↗1,131
  1. Home
  2. Web Development
  3. React State Primitives

探索子标签

  • Draft-Based State UtilitiesUtilities that enable state updates in functional components using a mutable draft version of the state. **Distinct from React State Primitives:** Distinct from general state primitives by focusing on the 'draft' mutation pattern.
  • Input SynchronizationPatterns for syncing user-entered data from form fields to internal component state. **Distinct from React State Primitives:** Focuses on the real-time synchronization of input state rather than general reusable state primitives.