Zustand einfacher Zähler
// store/store.js
import create from 'zustand'
export const useStore = create(set => ({
count: 0,
incrementCount: () => set(state => ({count: state.count + 1})),
decrementCount: () => set(state => ({count: state.count - 1}))
}))
Puzzled Puffin