Stook
Stook(谷堆) - A minimalist design state management library for React.
Stook
A minimalist design state management library for React.
Documentation
The documentation site of stook is hosted at https://stook-cn.now.sh.
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
Details:
Stars
0Forks
0Last commit
5 years agoRepository age
5 yearsLicense
MIT
Auto-fetched from GitHub .
MCP servers similar to Stook:

Stars
Forks
Last commit

Stars
Forks
Last commit

Stars
Forks
Last commit