8 Repos
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.
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.
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.
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.
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.
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.
Precedent is a Next.js application starter and component library providing a foundational set of pre-configured tools and primitives for building production-ready web interfaces. It serves as a toolkit for bootstrapping applications with integrated authentication, analytics, and a collection of opinionated UI components. The project distinguishes itself through a Tailwind CSS UI kit that combines accessibility primitives and motion libraries to create polished interfaces. It includes a server-side image generator for programmatically creating dynamic social sharing images and preview visuals
Provides reusable state management patterns and logic primitives for React.
use-immer ist ein React-Dienstprogramm für das State-Management, das einen benutzerdefinierten Hook für die Aktualisierung unveränderlicher (immutable) Zustände bereitstellt. Es ermöglicht die Modifikation einer temporären Entwurfsversion von Daten, um den nächsten Zustandsübergang zu berechnen. Das Tool vereinfacht die Verwaltung komplexer Zustände, indem es direkte Mutationen an einem Entwurf ermöglicht, was die Notwendigkeit beseitigt, verschachtelte Objekte oder Arrays manuell mittels Spread-Operatoren zu kopieren. Dieser Ansatz stellt die Generierung eines neuen unveränderlichen Snapshots für vorhersehbare Zustandsänderungen sicher. Die Bibliothek deckt Funktionen für die Aktualisierung tief verschachtelter Zustände ab und unterstützt die Verarbeitung von Zustandsänderungen durch Reducer.
Simplifies state updates in functional components by applying mutations to a temporary draft.
Dieses Projekt ist eine kuratierte Bibliothek wiederverwendbarer Logik, die darauf ausgelegt ist, das State-Management und das Komponentenverhalten in Webanwendungen zu vereinfachen. Sie fungiert als Frontend-Entwicklungs-Toolkit, das eine Sammlung von Community-gesteuerten Hooks bereitstellt, um häufige Aufgaben innerhalb des Komponenten-Lebenszyklus zu bewältigen. Die Bibliothek zeichnet sich durch ein zentrales Repository geteilter Lösungen zur Verwaltung komplexer Daten- und Schnittstelleninteraktionen aus. Durch die Bereitstellung vorgefertigter Abstraktionen für Browser-Schnittstellen, Netzwerkdatenanfragen und UI-Komponenten ermöglicht sie Entwicklern, repetitiven Boilerplate-Code durch modulare, funktionale Logik zu ersetzen. Die Sammlung deckt ein breites Spektrum an Funktionen ab, einschließlich der Synchronisierung asynchroner Daten, der Integration nativer Browser-Features und der Kapselung von Standard-Schnittstellenverhalten. Diese Tools sind so organisiert, dass Entwickler konsistente Muster für das State- und Side-Effect-Management in ihren Projekten identifizieren und implementieren können.
Provides reusable hook primitives to manage complex component data and application state predictably.