import { useReactive } from '@shined/reactive';
const [snapshot, mutate] = useReactive(initialState, options?);
// 使用示例
function App() {
const [{ count }, mutate] = useReactive({ count: 0 })
return (
<>
<div>{count}</div>
<button onClick={() => mutate.count++}>Increment</button>
</>
)
}