gain access of the variable that stores the useSelector in my handler function – Reactjs
I am trying to access the students variable by putting its value in a state then accessing that state in my handler function but it always returns an empty array. const students = useSelector((state) => state.students); useEffect(() => { setdata(students);…