React Redux Tutorials - 20 - useSelector Hook
Вставка
- Опубліковано 13 жов 2019
- 📘 Courses - learn.codevolution.dev/
💖 Support UPI - support.codevolution.dev/
💖 Support PayPal - www.paypal.me/Codevolution
💾 Github - github.com/gopinav
📱 Follow Codevolution
+ Twitter - / codevolutionweb
+ Facebook - / codevolutionweb
📫 Business - codevolution.business@gmail.com
useSelector Hook in React Redux
this guy is really good, maybe the best instructor I have met on my long way. Keep teaching!
Thank you very much. This is the only redux tutorial I found helpful for beginners like me. You explained each topic in its simplest form. Thanks again!
Thank you for this wonderful teaching without any fees.
Sir i have seen many videos but your way of teaching is far better than them some of them just go fast but that is not understandable you make everything so clear and so easily . Thank you for making this playlist.
Incredible set of tutorials. I'd say the best out there!
Jordan Utz agreed!
These react-redux tutorials as well as the react-for-beginners series really helped me to get going on my react app project. However, I noticed that this useSelector hook was never used for async action. #29 tutorial only uses mapDispatchToProps I would really love to see async action with useSelector hook from a container. But overall I love all the tutorials I am also gearing up for my next series (nextJS) to watch. Thank you so much.
@1:42
"The selector function recieves the Redux state as it's argument"
Bravo! You've explained in one sentence what every other video decided to skip over, causing me a long headache. That gets a thumbs up from me.
Note to other instructors: Don't skip over logic, and allow magical things to happen in your tutorials meant for beginners. Especially when it takes literally 3 seconds to explain the logic, like in this case.
Thank you for your great tutorial series. I learnt react concepts from you😀🎉
what a explanation? , you are making understandable to lay man ....Thank you so much!!!!
Muchas gracias por tu trabajo! Excelente
Thank you :)
It seems easy when You explaine! Thanks!!!
💖 thank you so much 💖
Me sirvió mucho tu vídeo, muchas gracias
thanks save my time
Спасибо!
i am using useSelector mostly is it good to use or shall i use mapstatetoprops
I think React hooks make it really easy to understand react and redux.
Hi Vishwas, Can you please create video on How to use shallowequal in useSelector hook? when to use it with example.
Sir how many videos are still pending for react redux course.
Please make on series Express js
It works on decrement(when buying cake the number of cake decrease) but when trying to increment it malfunctions. Suppose numOfCakes-10 and when we buy it gives us 9 but when incrementing the number instead of giving 11 it gives us 101, 1011, 10111, 101111... Why? is it an intention bug?
This happens because the number of cakes is a string typed value. When you substract a number from a string, JS will automatically convert the string into a number so you substract a number from a number. This does not happen to addition because in JS you still can concatenate strings(add strings together).
In order to fix this, before you do the addition, you should convert number of cakes to a number using the Number method.
ex: Number(value1) + Number(value2) to make sure both values are type of number.
How to do operation with useselector hook
Where is the next video please? :(
Please see the playlist of Redux by codevolution, He uploaded everything
TypeError: Cannot read properties of undefined- ( reading 'numOfCakes')
Go back to your CakeReducer component and in the cakeReducer function, make argument “state” to have and initialstate object which contain the “numOfCake” I.e (state=initailState, action ) => {} and all should work fine
{2022-09-28}
this didn't explain anything though.
What is this, how does it work, what happens under the hood?