Question:I’m new learner in reacr-redux,I used react-reduct in my porject, and some thing wrong ,the problem is what topic expound on, after, I use function component with the same action and reducer, it can work on useSelcect and useDispatch,so I think action and reducer is fine, but I can’t understand what happended in class component!
here are my code:
I konw reducer dont recommand that using the same array , but I only use createPlayerCard one time to initial the card,and when I use dipsath in function component,it could work,I think the problem is not here, May someone could help me figure out what the problem is? i will be grateful for yor help!!!!!!!
Best Answer:Create Player Card Action is the Props of the Test Component. You have to Call as
If you have better answer, please add a comment about this, thank you!