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
MIT License
Stook
Project Details
- Zwe1/stook
- MIT License
- Last Updated: 4/27/2024
Recomended MCP Servers
An MCP server for octomind tools, resources and prompts
💡 All-in-one open-source embeddings database for semantic search, LLM orchestration and language model workflows
An MCP server that checks if a website is currently down by querying the website https://www.isitdownrightnow.com
Claude Custom Prompts MCP Server - Create and use custom prompt templates with Claude AI
MCP server(s) for Aipolabs ACI.dev
MCP server for Windows OS automation
linear MCP server based on mcp-go
MCP server for interacting with Prometheus
A connector for Claude Desktop to work with collection and sources on your Zotero Cloud.





