I'm usually not using custom-hooks because I lack the imagination where to use them, and video just gave me 2 great ideas, thanks ! :) It would be great if you could do more videos regarding different common custom-hooks like these ones.
@chhavimanichoubey9437 Жыл бұрын
Yup, I think we don't have the coders' minds YET!!! or maybe we need to throw ourselves into the fire of a working environment to get creative and find use cases of various programming concepts.
@KrisnaRusdionoYT2 жыл бұрын
i have finished all this react hook series in this channel, literally worth every seconds. Thanks Kyle
@brian-lau4 жыл бұрын
damm, i am hooked now
@lilspelunker56133 жыл бұрын
get out
@anasaijaz78023 жыл бұрын
what are yuo 14?
@mouadrimwind88393 жыл бұрын
I see what you did there
@Kilopillz3 жыл бұрын
Ahhhaha I love the pun😂
@l4webdesign1863 жыл бұрын
I like how you react to this vid
@MagiCityProductions2 жыл бұрын
You have the best tutorials. You never add a bunch of unnecessary commentary and for that I thank you.
@wendylee54983 жыл бұрын
It's worth taking note that the views counts for this series dropped from 216,154 views (1st video) to 42,597 views (last video), maybe means there 's a learning curve; and I am proud that I watched all and code along. Great work Kyle!!!
@FaysalBDev2 жыл бұрын
this video is so underrated, it should have like a billion likes. thank you
@ינוןאלבז-כ1ז2 жыл бұрын
You're really simplifying the web for me
@tgfassina4 ай бұрын
Thanks!
@WebDevSimplified3 ай бұрын
Thank you for the support!
@samartajshaikh26012 жыл бұрын
The way you explain it, i am in awe of it.
@deepanjii20094 жыл бұрын
Wow man. You really have made the web simplified for us to build our project. Awesome content as always👏
@dannnnydannnn52013 жыл бұрын
Great series. You really helped me figure out the difference between the different types of react hooks. I was not having the easiest time trying to figure it out looking through other people's code. Thanks man. Keep the videos coming. You're great at what you do!
@alan-k1n2r4 жыл бұрын
React and hooks are so freaking fun. I just got my first job as dev and first task was creating a frontend all with hooks, apollo graphql, typescrypt and redux. When you figure it out you can play around with data really nicely. PS great channel
@abdullahawisimulaha4 жыл бұрын
Id love to have that kida job
@aubidanaalwa41613 жыл бұрын
you are one of the best that explains, thanks a lot for all the useful information
@kamelowy2 жыл бұрын
useLocalStorage hook should be implemented in React by default, it makes the operations on local storage so clean i can't imagine doing it the "default" way again. Thanks for another great tutorial! :)
@undisputedlegend75682 ай бұрын
Thanks bro, You're a lifesaver 😍🤜🏻🤛🏻
@Kilopillz3 жыл бұрын
Please keep this up this is really great. I just finished your entire hooks Playlist. Thank you😊
@NovaMenteMedia Жыл бұрын
Thanks so much for these videos, they are very concise and easy to follow.
@bohdanromanovich49123 жыл бұрын
Your video's is awesome. It's so simple to understand what you are saying! Thank you so much!
@yashdefy2 жыл бұрын
I am "hooked" to this channel..
@faris.abuali2 жыл бұрын
Thanks for simplifying react for us!
@fkbey5756 Жыл бұрын
i use redux toolkit and it helps me a lot. but really thanks for the video. we love u
@titlisarkar2784 жыл бұрын
Thanks Kyle... These videos are really helpful for beginners.
@madhusudhan40014 жыл бұрын
i have three letters for this video WTF ---- hands-down best explanation of custom hooks... thanks Kyle.
@מיכלדרור-דשת2 жыл бұрын
best explanation ever!! thank you
@BeCurieUs4 жыл бұрын
This example is perfect for me! I was creating a React project to manage Arkham Horror LCG stuff, and just had to saved in a big ol state. But for saving games serverlessly, local storage was gonna be the way I handled it. This idea will meld in nicely with saving my data, woot!
@amiturfnd4 жыл бұрын
Thanks a lot for this video. learnt something new today :)
@kostiantynkarzhanov9216 Жыл бұрын
Great tutorial! Thank you for the explanation! 💛
@oskarmarkin56744 жыл бұрын
KZbin should make a two like button only for your channel because I would give you two likes
@muhammadzeeshan074 жыл бұрын
Superb kyle, every thing is clear
@gaatutube4 жыл бұрын
Thanks for the great series on react hooks. Will definitely have to go through it a 2nd time to let all the details sink in. But I have good overview of it now.
@saurabhma1233 жыл бұрын
Greatly explained the concept!
@VishalSharma-rn7mt4 жыл бұрын
Awesome explanation, genius guy
@MaxProgramming4 жыл бұрын
Thank you! This is very much simplified to me!
@rohitborra2507 Жыл бұрын
really great tut. thanks dude
@moiserwibutso48992 жыл бұрын
Thanks for this great tutorial.
@basiccodingwithadam81254 жыл бұрын
Great little video, as usual, Kyle.
@krishnayele56394 жыл бұрын
liked it, loved it, just the thing I was looking for. Thanks very much.
@parasmaniseth78734 жыл бұрын
Before knowing this...I also use to the same thing....saving things in local storage....today he made this a react custom hook Kyle do knows how to use his tools appropriately and in efficient way
@bryceblazegamingyt97412 жыл бұрын
Imagine getting hearted by one of the best teachers on the internet
@snaplu46834 жыл бұрын
great tutorial series, thank you so much
@arunbm1233 жыл бұрын
very nicely explained
@liamcao-j6y2 жыл бұрын
thx already shared to Twitter
@juliangzr49983 жыл бұрын
Thank you very much! great video
@Neha-sw6ky4 жыл бұрын
Amazing video. I'm in love with you!
@diegoburlandotheinformal12173 жыл бұрын
Good job man!
@thivatutorials4040 Жыл бұрын
nice bro thanks for giving this video
@l.e.nichols93823 жыл бұрын
This is awesome, thanks so much.
@omarbarra3456 Жыл бұрын
amazing, thanks
@YRS243 жыл бұрын
awesome learnt about local storage and hooks
@dmcshehan4 жыл бұрын
Thanks a lot for the video.
@SumitKumar-bu3yn Жыл бұрын
Thank you
@manibarathi083 жыл бұрын
You can even add a deleteItem function inside useLocalStorage to delete the item if the user needs to
@DeepakGupta-hj2dv4 жыл бұрын
Great explanation kyle ..please make on one video Event loop
@OwaisAthar12 жыл бұрын
Great ✨
@muonx96493 жыл бұрын
It just works!
@tomermatmon4 жыл бұрын
This is great!
@ernestomotta51784 жыл бұрын
Awesome, thank you
@ВадимАлекс-щ6ъ2 жыл бұрын
thanks!
@boses53202 жыл бұрын
This was a great example... However if this example would help to stay login in after refreshing ..would be great
@satindersingh96714 жыл бұрын
You are the best
@BharatSingh-zk8lx2 жыл бұрын
this would definitely be helpful in react native 😀
@priyankaroberts10932 жыл бұрын
Hey Bharat Have you built any react projects recently? Are you open to internship/job opportunities in software development ?
@iurii77524 жыл бұрын
Great, thank you :)
@EJIqpEP4 жыл бұрын
Hi Kyle, I really like your videos and the quality of the image. What camera are you using? Thanks!
@WebDevSimplified4 жыл бұрын
It is a logitech brio shooting in 1080p
@EJIqpEP4 жыл бұрын
@@WebDevSimplified Thanks a lot!
@MrXperx3 жыл бұрын
Mind blow video
@kikiken42872 жыл бұрын
Thanks for the good video! But I think your useTimeout function should be like something like below. export function useTimeOut(callback, delay, dependency) { const callbackRef = useRef(); const timeOutRef = useRef(); useEffect(() => { console.log('callback update'); callbackRef.current = callback; }, [...dependency]); ... } because like you mentioned, callback without 'useCallback' is different always.
@justinmlawrence4 жыл бұрын
Awesome!
@riyajha65004 жыл бұрын
thanks, sir for such awesome video, if you possible please make some videos on react recoil.
@omarbarra3456 Жыл бұрын
just a little improvement, for the the custom hook we can use named-parameters, in that way the order of the parameters does not matter.
@ziyadkader67674 жыл бұрын
I am waiting for the MERN video ! :)
@joedu7320 Жыл бұрын
Can someone please explain: why assign a function in useState will reduce the call of localstorage, like he said in 5:20, "only call this once when first time rendering the component, not everytime render". I mean this function in useState still returns the result of function savedValue, so why not write like const [value, setValue] = useState(savedValue(key, initialValue)) ? Can anyone explain it?
@archdetective Жыл бұрын
I don't know if you already found your answer, but just in case... When using a function as initial value for useState, we need to practice "CURRYING" or wrapping function executions in another function, like this: useState(( ) => someFunc( )) as opposed to just: useState(someFunc( )). This way, someFunc doesn't get called unnecessarily every re-render. It's not noticeable on small apps but treat it as an optimization with the way useState hook works. In the video, the data from local storage is only read at the initial component render. EDIT: Try putting a console.log( ) on the function and compare. The one with no currying will show the log every keystroke.
@ajbotha72326 ай бұрын
Wow thanks
@zlackbiro4 жыл бұрын
Now, why not to bring this to another level? build your custom hook useStateStore, then create useReducer inside, import store hook into your components and voila, you have global store like Redux. Also, you can privide that store using context api... :)
@piotrekjazz12872 жыл бұрын
5:20 I thought this is about simplifying tricky Custom Hooks, and not complicating them, so pointless
@rohinchopra98123 жыл бұрын
Even though how simple the last hook was it can be pretty handy in debugging stuff
@priyankaroberts10932 жыл бұрын
Hey Rohin Have you been working on any react projects currently? Are you open to internship/job opportunities in software development ?
@mr-moses-012 жыл бұрын
Dude how are you making your hair like that every day :D
@shuuheihisagi31484 жыл бұрын
Hey, thanks again for another video! Can you make on related to wherr to store jwt on the client side?
@ridl274 жыл бұрын
ty.
@akashdevgan3 жыл бұрын
One question, why will initialValue be a function?
@anasalhariri54742 жыл бұрын
Kyle, how do you get the localstorage in chrome to update when the state is changing? I had to refresh the localstorage to see the new value. Can you please help?
@rohandevaki43494 жыл бұрын
actually i tried the same code with a signle function , in the same component, and it works fine, but i cant use useEffect inside a function,for that i just made a if check, and if we want to use a useEffect inside a function, that must be a react component, or a custom hook, that is fine, but here the important thing is with a custom hook we can use it several times, instead of writing the code again and again, thanks for the awesome video,
@mateokks85312 жыл бұрын
te quiero mucho, gracias
@amankaushik58334 жыл бұрын
Really, really awesome video!! as always by the way I wanted to ask that can we make android apps in like plain javascript without using React Native and can we use js with C++ or python?Thanks!!
@prabhatchanchal4 жыл бұрын
I know one way to use js with python is "eel" but not don't know about C++ with js.
@fredhair4 жыл бұрын
Android supports c++ natively and has its own NDK but why you'd want to mix it with js im not sure. PWA is basically using js and c++ just the c++ is written by the browser vendor. Its all possible but the practicality of it will depend on the kind of software you want to write.
@amankaushik58334 жыл бұрын
@@fredhair hey there!! actually, I was thinking that it would be easier to make a user interface if we combine c++ with js, HTML, AND CSS maybe Node js would do it.
@rogerjohn77864 жыл бұрын
Hi Kyle please make a video on Instant search filter like youtube on react.
@sanghvian4 жыл бұрын
legend
@fluttterdev1k5 ай бұрын
I ate these fucking hooks bcz of you, the great Kyle
@Pareshbpatel3 жыл бұрын
Great Tutorial on Custom Hooks in React. Thanks, Kyle {2022-02-24}, {2022-08-02}, {2022-11-16}, {2023-06-28}
@daniillitvinenko4348 Жыл бұрын
Can someone explain what he does starting 5:02? "And now we what we can do is use a function version...". As opposed to what? Does writing an explicit return statement make it a "function version"?
@ayushilahariya6477 Жыл бұрын
hello i have one question i want to use the usedispatch and useselector outside the function and class component. i have a helper.js in which i am trying to call the api by using redux saga for that i need to use usedispatch and then the response i want to get through useselector in same helper class. any idea how to achieve this
@caesarbala2 жыл бұрын
so custom hooks combination of function and component we take argument and return / without return . also we can useEffect within it .
@SS-re8xb Жыл бұрын
Is "if(initialValue instanceof Function) return initialValue();" necessary? Because if using a console.log() to print out whether it's true or false, we'd always get "false". So, what's the reason to use this line of code?
@nahida44442 жыл бұрын
Hey, a question, does a hook persist and share the state through multiple component, like context-provider works?
@rohandevaki43494 жыл бұрын
at 1:19, what is the alternative for localstorage?, can we use useContext or redux for global storage, or even though if we use useContext or redux, the input value will become empty?
@Human_Evolution-3 жыл бұрын
So lost. I cannot follow this video. Does anyone know of something even easier than this? I am like 10 hours into these and I feel like I know nothing.
@Viv-m8j10 ай бұрын
Same here
@Human_Evolution-10 ай бұрын
@@Viv-m8j been a paid dev for over a year now. Still confused lol
@uprisingalpha2065 Жыл бұрын
god damn good tho full skilled in this shit :D thx for ur video
@willmakk4 жыл бұрын
love me some cutsom hooks
@vinaykumar-sg7xd3 жыл бұрын
how can initialvalue be a function. i didn't get that part. can anyone explain please
@OcasoND2 жыл бұрын
Look how slow he used to talk - now he talks in x1.25
@ngocdangduc3772 Жыл бұрын
Can some1 explain to me why using a function in useState can help reduce the call on localstorage ?😊
@glenninn4 жыл бұрын
Kyle. Check the title of this video. You have a typo. “cuTsom”. I think you want “cuStom”
@mykalimba4 жыл бұрын
It's in the thumbnail, too.
@heavierthanlight71734 жыл бұрын
I love Angular, but passing through to point out a typo.
@WebDevSimplified4 жыл бұрын
Thanks for the heads up. I am working on getting that fixed.
@andresaguilar99794 жыл бұрын
I think it was just a "custom title"😂
@khotambakhromov4 жыл бұрын
@@WebDevSimplified Good video bro thanks. Could you make a video of how hooks work under the hood?
@prabaljainn4 жыл бұрын
Sir Please make a tutorial on useSelector and useDispatch hooks
@alistairferns85024 жыл бұрын
useDispatch is basically mapDispatchToProps and useSelector is mapStateToProps.