score:1

the problem is here

export const selectuser = state => state.user.user;

you created slice with name counter here

export default configurestore({
  reducer: {
    counter: userreducer,
  },
});

try

export const selectuser = state => state.counter.user;

or rename counter to user


Related Query

More Query from same tag