Skip to content

Instantly share code, notes, and snippets.

@4drian-sanchez
Last active August 21, 2025 15:32
Show Gist options
  • Select an option

  • Save 4drian-sanchez/f577352dd28894568967afe2ed9e49bb to your computer and use it in GitHub Desktop.

Select an option

Save 4drian-sanchez/f577352dd28894568967afe2ed9e49bb to your computer and use it in GitHub Desktop.
Basic zustand store
import {create} from 'zustand'
import { devtools } from 'zustand/middleware'
interface Store {
}
const initialState = {}
export const useStore = create<Store> () (devtools( (set, get) => ({
...initialState,
})
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment