I already know a little bit about redux, but i cannot be able to choose between useSelector hook and mapStateToProps, can anyone tell-me the basics difference between it?
There is nothing you can do with mapStateToProps/mapDispatchToProps that you can't do with the useSelector and useDispatch hooks as well.
I really like answer from this one, You can check it here. stackoverflow.com/questions/597481...
I already know a little bit about redux, but i cannot be able to choose between useSelector hook and mapStateToProps, can anyone tell-me the basics difference between it?
There is nothing you can do with mapStateToProps/mapDispatchToProps that you can't do with the useSelector and useDispatch hooks as well.
I really like answer from this one, You can check it here.
stackoverflow.com/questions/597481...
else there is also an explanation on useSelector in the documentation:
react-redux.js.org/api/hooks
Nice, im happy in know this! I appreciate your attention!
anytime ^_^