UNPKG

create-swiftstart

Version:

Automate the setup of Vite-React & Next.js projects with a pre-designed boilerplate structure using create-swiftstart. This tool saves your time and provides a clean starting point for your React or Next.js applications.

16 lines (12 loc) 282 B
import { create } from "zustand"; export const useUserStore = create((set, get) => ({ isLoggedIn: false, isUserLoading: true, count: 0, checkAuth: () => { set({ isLoggedIn: true }) }, increment: () => { set((state) => { count: state.count + 1 }) } }));