8 repository-uri
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 este un starter de aplicație Next.js și o bibliotecă de componente care oferă un set fundamental de instrumente preconfigurate și primitive pentru construirea de interfețe web gata de producție. Servește ca un toolkit pentru bootstrapping-ul aplicațiilor cu autentificare integrată, analiză și o colecție de componente UI opinate. Proiectul se remarcă printr-un kit UI Tailwind CSS care combină primitive de accesibilitate și biblioteci de mișcare pentru a crea interfețe finisate. Include un generator de imagini pe partea de server pentru crearea programatică a imaginilor dinamice de partajare socială și a vizualizărilor de previzualizare la marginea rețelei (edge). Biblioteca acoperă o gamă largă de capabilități, inclusiv integrarea identității terțe pentru autentificarea utilizatorilor și gestionarea sesiunilor, analize web axate pe confidențialitate pentru monitorizarea metricilor vizitatorilor și o colecție de hook-uri React personalizate pentru gestionarea stării pe partea de client, stocarea locală și vizibilitatea elementelor. De asemenea, oferă utilitare pentru formatarea textului și a numerelor.
Provides reusable state management patterns and logic primitives for React.
use-immer este un utilitar de gestionare a stării pentru React care oferă un hook personalizat pentru actualizarea stării imutabile. Acesta permite modificarea unei versiuni draft temporare a datelor pentru a calcula următoarea tranziție de stare. Instrumentul simplifică gestionarea stării complexe prin activarea mutațiilor directe pe un draft, ceea ce elimină nevoia de a copia manual obiecte sau array-uri imbricate folosind operatori spread. Această abordare asigură generarea unui nou snapshot imutabil pentru schimbări de stare predictibile. Biblioteca acoperă capabilități pentru actualizarea stării profund imbricate și suportă procesarea schimbărilor de stare prin reduceri.
Simplifies state updates in functional components by applying mutations to a temporary draft.
Acest proiect este o bibliotecă curatoriată de logică reutilizabilă, concepută pentru a simplifica gestionarea stării și comportamentul componentelor în aplicațiile web. Funcționează ca un toolkit de dezvoltare frontend care oferă o colecție de hook-uri bazate pe contribuțiile comunității pentru a gestiona sarcinile comune din ciclul de viață al componentelor. Biblioteca se distinge prin oferirea unui repository centralizat de soluții partajate pentru gestionarea datelor complexe și a interacțiunilor de interfață. Prin furnizarea de abstracții pre-construite pentru interfețele browserului, cererile de date de rețea și componentele de interfață utilizator, permite dezvoltatorilor să înlocuiască boilerplate-ul repetitiv cu logică modulară și funcțională. Colecția acoperă o gamă largă de capabilități, inclusiv sincronizarea datelor asincrone, integrarea funcțiilor native ale browserului și încapsularea comportamentelor standard de interfață. Aceste instrumente sunt organizate pentru a ajuta dezvoltatorii să identifice și să implementeze tipare consistente pentru gestionarea stării și a efectelor secundare în proiectele lor.
Provides reusable hook primitives to manage complex component data and application state predictably.