UNPKG

react-achievements-zustand

Version:

This package allows users to transpose a React achievements engine over their React apps using Zustand for state management

10 lines (8 loc) 269 B
import { useAchievementStore } from '../store/useAchievementStore'; export const useAchievementState = () => { const { metrics, previouslyAwardedAchievements } = useAchievementStore(); return { metrics, previouslyAwardedAchievements, }; };