Function useStoreState

Hook to use the store state.