a cra project test react hook and redux-thunk
refer to redux doc, use reddit api
note
figure out how to use reducer with hook. no need to use 'connect'. instead, 'useDispatch' and 'useSelector' to dispatch action and get data from state(store).
a cra project test react hook and redux-thunk
refer to redux doc, use reddit api
note
figure out how to use reducer with hook. no need to use 'connect'. instead, 'useDispatch' and 'useSelector' to dispatch action and get data from state(store).