import { useStates } from '@cap-rel/smartcommon'; function MyComponent() { const st = useStates({ initialStates: { count: 0, user: { name: '', email: '' }, items: [], loading: false }, debug: true // Affiche les changements en console }); return (
Count: {st.get('count')}