I am creating a counter application using react and redux.
In the counterSlice.js file, I included this line:
export const selectCount = (state) => state.count;
And in the Counter.js file, I have included these lines:
import { changeValueBy, selectCount } from "./counterSlice";
const count = useSelector(selectCount);
But the value of count remains undefined.
My complete code is here.
Please tell me what I'm doing wrong.