I love the humility of comments like "Fingers-crossed, this should all work..."
@simpletechtips84423 жыл бұрын
Thank you for this. This whole series has explained Hooks and Props in an outstanding way.
@NetNinja3 жыл бұрын
Glad you enjoyed it! 😃
@mjylove26 ай бұрын
same here, this video is where i finally understood the custom hook concept
@BigTime9293 жыл бұрын
i love the way you explain things, such as 4:30 "this data will not clash with the useState data because it's the local version inside this function" cause it may confuses some people but u made it clear for all of your viewers!
@ericmomoh79272 жыл бұрын
I have struggled with reacts for months until I bumped into this channel. Understanding is here.
@geojolly75123 жыл бұрын
I really like this man. I want a teacher like him.
@mircast03 жыл бұрын
You do have one. On this channel. And that's awesome! :)
@peterbrink44212 жыл бұрын
I am about half way through this series and I just want to say thank you for the incredible content. Congratulations, not many have the ability to explain things in such a concise yet interesting way.
@mysticguava3 жыл бұрын
You explained everything in a clean and simple way that no one else did. Thanks, Shaun
@NetNinja3 жыл бұрын
Thank you! 😃
@CrazyClips1083 жыл бұрын
NetNinja's courses are based on the principle 'do it wrongly to understand it and to never forget'. Brilliant !
@SkyrimBeast2 жыл бұрын
I'm working on an app that pulls movies from different genre's via TMDB. It quickly became clear to me that my code was getting beyond repetitive and hard to manage. A custom hook is exactly what I needed. Huge thanks for this Net Ninja. Whenever I do get a job as a React developer, I'll owe a large part of that success to you. Much ❤
@SamChaneyProductions Жыл бұрын
At 4:15 you can just press F2 to rename a variable in VSCode. This will ensure you don't miss any of them and it's much faster
@mr.rambaviskar Жыл бұрын
Thanks sam❤
@Fred_Klingon26 күн бұрын
I'm following the whole course since the first lesson, I really like your explanations, not too fast but straight to the point. Also this episode is really gold! I always avoided React in these years, but in this lesson I can see that if used properly, it makes code reuse and readability very easy!
@louis_dev69813 жыл бұрын
Thank you so much for making this video series. You explain the fundamental concepts of React such as hooks, state and props in a clear and easy-to-understand manner, so it really helps me to learn React and get comfortable with using React in my project 🙏🏼
@unknownman13 жыл бұрын
I'm following the series regularly, waiting for the next tutorial. Thanks Shaun you are great
@Onyecode Жыл бұрын
Just started this course and I have already built a landing page, something I have been tryjng for a year now, thanks so much
@NetNinja Жыл бұрын
Happy to help!
@kevinnzeng70813 жыл бұрын
You are great Shaun ! Your courses are so fluid, clear that everything look so easy with you. Thanks a lot
@MrRobeezy293 жыл бұрын
So good. Other tutorials on youtube made it way more complicated than it had to be...thank you so much for clearing this up!
@alexgrinberg18883 жыл бұрын
Your courses are clear and concise. Right to the point. Really easy to learn. Especially for the professionals who do not have much time and need to learn React in several days. Huge Thanks!!! Please keep up creating such great content!
@nroshstp3 жыл бұрын
best practice for coding full-on mate, loving the way you simplifying things. Thank you very much !!
@NetNinja3 жыл бұрын
Thank you 😃
@maskman48213 жыл бұрын
React Custom hook is pretty much like Vue Composable, actually they are the same thing, I have just finished Shaun's vue3 course on udemy and this react series helps a lot to understand and compare these two frameworks, thank you Shaun for this terrific chapter !!!
@NetNinja3 жыл бұрын
Yeah - they are very similar.
@PavanKumar-tt6tw2 жыл бұрын
Hey Shaun, you are one of the finest teachers, I've ever encountered. Thanks a lot for offering this amazing content. Your way of explaining things is just awesome. Straight to the point. Loads of love from India. Universe bless you with prosperty, love, health and wealth.
@NetNinja2 жыл бұрын
Thank you so much for your support Pavan :)
@sueholder7033 жыл бұрын
I wish I'd had Shaun as my personal tutor all the way through school. I'd have learned so much more! He breaks it down so you can easily understand each piece so that when he moves on to the next piece, you understand what is going on! I am going to hit JOIN so that he can be my teacher!
@sueholder7033 жыл бұрын
I don't see JOIN, I see SEE PERKS!
@NetNinja3 жыл бұрын
Thanks so much :)
@tehtriangle66603 жыл бұрын
This is an incredibly easy-to-follow tutorial on custom hooks. Thanks!
@philjacks85313 жыл бұрын
This is an amazing React course. This lesson is awesome, I can see myself reusing this in many projects. Thanks for all your content.
@johnconnor97873 жыл бұрын
The best explanation of custom hook implementation on KZbin
@matheusschlosserbasso56493 жыл бұрын
Thank you SO much! This is the best content I've seen so far... I've learned more in this course than in months of other courses.
@ruziatepvp2 жыл бұрын
I mean, i tried to make tutorials like this 15 years ago (Joomla stuff) - and let me say this: it is very, very - veeeeeery hard. I for myself had to stop every 15 seconds or so, because i messed up and in the end, you find something thats incorrect or not working out as you wished for, so you have to start over from the scratch. So damn respect for those clips Mr. Net Ninja, hands down!
@nielfollero53 жыл бұрын
6:18 Do we really need to add the url in the dependencies of useEffect? Cause I think the url is not gonna be changed during the run time of that custom hook, thus putting url will be useless, just putting [ ] is enough to prevent the infinite execution of useEffect whenever the useState data change. I might be wrong. I'm just basing all of that from what I've learned during this series only, I'm only a student lol.
@rpanda_old3 жыл бұрын
i have the same doubt. I didnt understand why URL is added as a dependency to the hook
@Alphashow73 жыл бұрын
Same thoughts, considering that url is not even a state, can the useEffect even react to a variable that isn't a state ?
@vladyslavstadnyk276210 ай бұрын
Following the logic of states, probably to prevent doing not necessry backend calls on any possible re-renders of other components non related to the url.
@sumisastri56812 жыл бұрын
This is one of the most useful modules in the course a great way to abstract out an API call and reuse it with a custom hook. Thanks @Shaun
@akinrotimidaniel2325 Жыл бұрын
Kudos bro, I'm no fan of JavaScript, or should I say 'was'. This tutorial is just perfect
@levaniakobidze82022 жыл бұрын
That's the best explenation of custom hooks. Thanks a lot.
@NetNinja2 жыл бұрын
You're welcome! hope it was helpful :)
@darumaleo8 ай бұрын
that was really smooth and satisfying to watch
@priyankkharat74073 жыл бұрын
Really love the series
@kristofferjohansson37683 жыл бұрын
I just love when all pieces are put in place. Beautiful!
@sushilbalami3 жыл бұрын
That's what I am waiting for, ❤ Please make it a complete course so that by looking on to documentation we can understand what does it mean, ❤
@MrGlujaN3 жыл бұрын
Dude, thank you so much, your videos on react made me get my first job on tech
@learningit25722 жыл бұрын
OMG YOU ARE NUMBER ONE NINJA IN THE WEB. Ukraine watching)) thanks so much.
@devapps-uk3 жыл бұрын
gonna refactor my personal project with custom hook like your way, thanks :)
@napsarenice2 жыл бұрын
Excellent, clear explanation. This was super helpful in understanding how to create custom hooks. Thank you!
@spondoolie64502 жыл бұрын
Everything that was confusing to me about making custom hooks was explained in less than 9 minutes. I feel like this is my weakest part of React at this moment.... so this video is definitely getting saved in my "React" playlist.
@aarensan3 жыл бұрын
Best I've seen so far! Very comprehensible.
@Yahya-u5x Жыл бұрын
This is the what i was looking for, you saved my life i was struggling to move the useEffect to another file. Thank you ❤
@NetNinja Жыл бұрын
Glad to hear that! :) thanks
@muhammadjonnazarov1467 ай бұрын
Wonderful and easy way to understand the concept. Thanks a lot. Please, keep creating such wonderful tutorials.
@NetNinja7 ай бұрын
Thank you muhammad :) much appreciated!
@mjylove26 ай бұрын
your React Tutorial series is legendary. huge thanks to you !
@NetNinja6 ай бұрын
I appreciate that! :) thanks so much for watching
@markyanthonylaredo26143 жыл бұрын
I love this ninja way of toturial 😍❤
@franjosipovic57663 жыл бұрын
Broo you are amazing. I love programming 10 times more because of you!!! Will you do in the future series where you connect backend and frontend...for example django + react or something similar?
@NetNinja3 жыл бұрын
Yeah I will be doing a more full-stack project in the future :)
@bofinannhor35663 жыл бұрын
you are the first teacher that made me understand the react
@RizkyGusna3 жыл бұрын
This tutorial has been a blast so far! Great explanation!
@Kilopillz2 жыл бұрын
Thank you for this. This is the exact problem I was trying to solve. Starting this course from the beginning.
@ashwinsuryawanshi Жыл бұрын
Thanks for giving a super practical use case for the example. This makes code very clean and easy to use. ⭐
@mpho4382 жыл бұрын
I'm starting to enjoy react, everything is clear and concise and pretty much easy to follow, I'm about to finish this series but I constantly going to come back from time to time for revision.
@ayinlaoluwafemi19933 жыл бұрын
Thank you Net Ninja for making what seems difficult to understand easy.
@Shahzaib_Atif Жыл бұрын
That's excellent explanation. The only thing I would like to add in this custom hook is a cleanup function to abort the fetch request in case of unmounting etc.
@CptBouchard3 жыл бұрын
So much clear in my mind now, with such good explanations! THANK YOU!
@royataleghani65192 жыл бұрын
Great tutorial, very clear and easy to understand the logic. Thank you so much.
@NetNinja2 жыл бұрын
You're very welcome! Thanks for watching Roya
@urbainquentin16632 жыл бұрын
Best react course ever
@NetNinja2 жыл бұрын
Thanks Urbain
@lukasluftlaufer10932 жыл бұрын
Exactly what I needed! Thanks Shaun! 🧡
@michaelzucker7723 жыл бұрын
Thank you for your videos. I love the way you explain the concepts along the way.
@keishawaithe-johnson50343 жыл бұрын
Exactly what I've been looking for! Explained so simply 👌
@rohan17653 жыл бұрын
Fabulous explaination 👍🏼
@HostDotPromo3 жыл бұрын
Agreed, very easy to understand.
@m_imran_khan2 жыл бұрын
Excellent resource. Thanks for you effort mate, appreciate it.
@MiikaKontio Жыл бұрын
Really good tutorial and helped me exactly how I needed. I managed to do useFetch myself and get rid of hundreds of lines of duplicate code
@lokmanhossainpappu50963 жыл бұрын
Love you shaun. And love your awesome content. Your content better than paid course. keep going
@hseinb3 жыл бұрын
thanks shaun, you're a gifted teacher
@krish465911 ай бұрын
Just a note from my observation : the names of returned properties from useFetch() and the names mentioned in destructing properties in home.js if return {data} is mentioned in useFetch , in homejs also it should be {data : alias}= useFetch("url");
@trangnusi133 жыл бұрын
Thank you. I really like your tutorials. Well done!
@mohamedamin-g3f7n Жыл бұрын
i love you man, your tutorials are simply amazing
@NetNinja Жыл бұрын
Thanks Mohamed, that means a lot :)
@VS2573 жыл бұрын
I have a question. When you have a custom hook and all the states are transferred from Home component to the custom hook, is it still the Home component's states? OR does it become sort of a global state in whichever component that custom hook is used?
@rpanda_old3 жыл бұрын
i have the same doubt
@keifonlee83423 жыл бұрын
same doubt and don't cant find the answer
@miladnouri43643 жыл бұрын
I think the custom hook is specific to whatever component is using it, changing the state data in one component will not cause to change data in another component, even if they are both using the same custom hook. To share state data across multiple components in a large project, you should use Redux or React Context.
@FahadKhan-rp3rz3 жыл бұрын
This is the clear definition that how react context works.
@ibadshaikh22153 жыл бұрын
Extraordinary explanation dude!
@frazbakht44803 жыл бұрын
I am learning so much. Really thank you for this!
@deepakkvijayan2 жыл бұрын
Hey Shaun. You are one of the best teachers on youtube. I find your videos clear and to the point. Hands down the best. I have a query. Hooks can't be used inside other hooks right. So how come useState is working inside the custom hook "useFetch". For me it's giving an error. I watched this video many times. I don’t think I am doing anything different .
@Anteater236 ай бұрын
You are the best. Some other channels go at 100mph and I learn nothing.
@waltergermanes45282 жыл бұрын
Very straightforward explaination, thank you very much 😃
3 жыл бұрын
Great way to explain this. Thanks a lot! Greetings from Colombia.
@ghofranedarragi56013 жыл бұрын
really thank you for your detailed and clear explanation ❤❤
@bassamsaleh5396 Жыл бұрын
updating on a bit of an experiment for me. you do not have to name ur custom hooks with "use" at the start of them as they seem to me like regular javascript functions, so even if you name them something else like "FetchItUp69" they will still work, however it is probably a good idea to keep using the "use" before ur hook name to stay consistent. also for whoever cares, the hook will behave like a "class instance" (if ur coming from an OOP POV) for the component it was called on, i share this with u cuz these questions popped in my mind and i started experimenting to find the answers. *I hope im not wrong*
@MultiTrickster1213 жыл бұрын
Why do we need to add the url as a dependency in useEffect? I thought the useEffect hook would only run if it was called inside a component anyway, so why do we need to specify that it needs to run when the url changes?
@woofcode33833 жыл бұрын
As always, superb nugget! Thank You!
@asifurrahman82573 жыл бұрын
man you explain like butter
@emmanuelngwenya98453 жыл бұрын
Youre the best man....like you are a very good explainer
@CreativeTutorialsWeb3 жыл бұрын
Love your courses bro keep rising full support from me
@chasec48972 жыл бұрын
You are a gift from the gods.
@lucasfernandes93813 жыл бұрын
Although I found it complicated at first, I loved it.
@corsaronero56193 жыл бұрын
Hi Shaun, thanks for your beautiful video tutorial, can you explain the component communication between sibling. all videos are about parent child, but what about if I have an App.js with 3 components, left, top, bottom and anytime I click on the left component I want to see the detail on the top component and all 3 components are visible on the same page? thanks
@megaguys-b8k4 ай бұрын
Everithing is very clear, thank you sensei❤
@NetNinja4 ай бұрын
Awesome, thanks for watching!
@sohaibkhan8452 жыл бұрын
Best tutorial series for react
@mew60852 жыл бұрын
Your course is very well! Thanks a lot)
@mhassankhan86772 жыл бұрын
straight to the point. awesome!
@lucasmaus95972 жыл бұрын
Just on point. Awesome tutorial!
@xxxxxzzee232 жыл бұрын
This is exactly the best tut!!!!!!!!!!! 💗
@AbhishekVaid7 ай бұрын
at 6:21, the fact that url is passed into dependency array doesn't make sense since it's just variable and not a useEffect type entity
@mariampureliani7215 Жыл бұрын
Love the way you explain every detail! 💫 You da Best 💯❤
@MuhammadSaaddev2 жыл бұрын
You Sir, are a LEGEND !
@abtaf7449 Жыл бұрын
it is one of the best learning methods that suit me! thanks👋
@NetNinja Жыл бұрын
Glad to hear that! thanks Abtaf
@cartman420693 жыл бұрын
wow. so well explained. thanks a lot!!!
@GintasLtu Жыл бұрын
At lesson 20 have issues with "Unexpected token '
@vladyslavstadnyk276210 ай бұрын
Because you've got not valid json response. It's related to the CORS, I suppose, struggling with the same error.
@ZTF6663 жыл бұрын
Beautiful and easy so far !
@Vincent1990-l1y3 жыл бұрын
God damn it, I really enjoy of watching these tutorials! Damn you're good
@TheNamesJT3 жыл бұрын
I'm confused with the object de-structuring cause it looks similar to setting a value for an object key example {id: 1} here we set 1 to be the value of id but when you use {data: blogs} this is just renaming it and doesn't change its value and what it returns. How can you tell the difference?
@farhanaditya26473 жыл бұрын
When you're setting a value, you're assigning the object to a variable. But when you destructure an object, you grab the values from a variable. // assignment let variable = { key: value } // destructure let { key: value } = variable
@cryptopinky2355 Жыл бұрын
this is awesome! the best explanation of the topics/