How to dispatch an redux action to load data inside useEffect on page load
问题 I am trying to integrate redux to an existing react application. I am learning redux. I am using hooks. In the internet there are many examples of using class components. I could not find an example how to achieve this with a function component. The code below does not throw an error. But, the action inside useEffect is not called. The code does not produce any output. I wonder if the call is correct or not. Any help? Index.js const store = createStore(rubricReducer, applyMiddleware(thunk));