Last active
August 21, 2025 15:32
-
-
Save 4drian-sanchez/f577352dd28894568967afe2ed9e49bb to your computer and use it in GitHub Desktop.
Basic zustand store
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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