All Projects → forsigner → stook

forsigner / stook

Licence: MIT license
A minimalist design state management library for React.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to stook

react-cool-form
😎 📋 React hooks for forms state and validation, less code more performant.
Stars: ✭ 246 (+186.05%)
Mutual labels:  hooks, state-management, form
Resolvers
📋 Validation resolvers: Zod, Yup, Joi, Superstruct, and Vest.
Stars: ✭ 222 (+158.14%)
Mutual labels:  hooks, form
use-query-string
🆙 A React hook that serializes state into the URL query string
Stars: ✭ 50 (-41.86%)
Mutual labels:  hooks, state-management
react-useForm
World's simplest React hook to manage form state
Stars: ✭ 30 (-65.12%)
Mutual labels:  hooks, form
React Form
⚛️ Hooks for managing form state and validation in React
Stars: ✭ 2,270 (+2539.53%)
Mutual labels:  hooks, form
Reto
Flexible and efficient React Store with hooks.
Stars: ✭ 194 (+125.58%)
Mutual labels:  hooks, state-management
react-hooks-form
React Forms the Hooks Way
Stars: ✭ 25 (-70.93%)
Mutual labels:  hooks, form
Redhooks
Predictable state container for React apps written using Hooks
Stars: ✭ 149 (+73.26%)
Mutual labels:  hooks, state-management
resynced
An experimental hook that lets you have multiple components using multiple synced states using no context provider
Stars: ✭ 19 (-77.91%)
Mutual labels:  hooks, state-management
useSharedState
useSharedState is a simple hook that can be used to share state between multiple React components.
Stars: ✭ 0 (-100%)
Mutual labels:  hooks, state-management
Fielder
A field-first form library for React and React Native
Stars: ✭ 160 (+86.05%)
Mutual labels:  hooks, form
react-zeno
The React companion to Zeno, a Redux implementation optimized for Typescript.
Stars: ✭ 14 (-83.72%)
Mutual labels:  hooks, state-management
Use Url State
Lift a React component's state into the url
Stars: ✭ 154 (+79.07%)
Mutual labels:  hooks, state-management
Reusable
Reusable is a library for state management using React hooks
Stars: ✭ 207 (+140.7%)
Mutual labels:  hooks, state-management
React Model
The next generation state management library for React
Stars: ✭ 153 (+77.91%)
Mutual labels:  hooks, state-management
React Hooks Helper
A custom React Hooks library that gives you custom hooks for your code.
Stars: ✭ 227 (+163.95%)
Mutual labels:  hooks, form
React Atom
A simple way manage state in React, inspired by Clojure(Script) and reagent.cljs
Stars: ✭ 133 (+54.65%)
Mutual labels:  hooks, state-management
Pure Store
A tiny immutable store with type safety.
Stars: ✭ 133 (+54.65%)
Mutual labels:  hooks, state-management
dobux
🍃 Lightweight responsive state management solution.
Stars: ✭ 75 (-12.79%)
Mutual labels:  hooks, state-management
hooksy
Simple app state management based on react hooks
Stars: ✭ 58 (-32.56%)
Mutual labels:  hooks, state-management

Stook

npm Coverage Status Minzipped size code style: prettier

A minimalist design state management library for React.

Documentation

The documentation site of stook is hosted at https://stook.vercel.app.

Quick start

simplest

import React from 'react'
import { useStore } from 'stook'

function Counter() {
  const [count, setCount] = useStore('Counter', 0)
  return (
    <div>
      <p>You clicked {count} times</p>
      <button onClick={() => setCount(count + 1)}>Click me</button>
    </div>
  )
}

share state

import React from 'react'
import { useStore } from 'stook'

function Counter() {
  const [count, setCount] = useStore('Counter', 0)
  return (
    <div>
      <p>You clicked {count} times</p>
      <button onClick={() => setCount(count + 1)}>Click me</button>
    </div>
  )
}

function Display() {
  const [count] = useStore('Counter')
  return <p>{count}</p>
}

function App() {
  return (
    <div>
      <Counter />
      <Display />
    </div>
  )
}

License

MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].