Skip to content
Mostafa Rastegar edited this page Jun 1, 2025 · 3 revisions

πŸš€ React ConStore Wiki

⚑ Ultra-lightweight state management for React 18+ applications (~950B gzipped)

Welcome to the comprehensive guide for React ConStore! This wiki will help you master modern React state management with minimal overhead.

πŸ“Š Quick Stats

πŸ“¦ NPM Package πŸ“ Bundle Size ⭐ GitHub Stars πŸ“₯ Downloads
react-constore ~950B gzipped ⭐ Star us! πŸ“ˆ NPM Trends

πŸš€ Quick Start

npm install react-constore
'use client'; // for Next.js App Router

import createStore from 'react-constore';

// 1. Create your store const store = createStore({ count: 0, user: { name: 'Guest', age: 25 } });

// 2. Use in components function Counter() { const [count, setCount] = store.useStoreKey('count');

return ( <div> <h2>Count: {count}</h2> <button onClick={() => setCount(count + 1)}> Increment </button> </div> ); }

// 3. Components automatically sync! πŸŽ‰

Clone this wiki locally