React 18 includes the new hooks useTransition and useDeferredValue. Both of these hooks are based on concurrency. They can be useful, but they shouldn't be used all of the time. We'll look at both how to use and when to use these new hooks. If you are new to React, I recommend starting with my React JS for Beginners full course here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-RVFAyFWO4go.html
Been lurking on your channel for a couple of hours. I'm very impressed by the amount of content and quality produced. Looking forward to the Discord server!
Thanks for the video Dave ... Would love to see a series wherein - How to do things in React + - general scenarios / use cases - filter / sort - pagination - infinite scrolling - search functionality ( debounce technique) - lazy loading stuff - file upload - validations using form Many more .... I have gone through the login authentication series ... My goodness 😍 huge respect Dave 🙏💯 -
@@DaveGrayTeachesCode Amazing Dave, Thank you 😍 ... Intention is most of the jobs have similar functionalities to implement more or less, you know better than me 😄 ...
I feel that the difference between them is similar to useMemo and useCallback, only the application scenario is different, and they can be used together technically but not reasonable.
The useTransition hook strikes me as a way to manipulate the DOM after it's fully rendered. Thanks for these video's Dave, I've been watching your content for several months now.
Do we really need the "startTransition" function inside "useEffect" in practical example? useEffect already depends on "deferredInput", which itself tells the react to execute its callback with lower priority. A bit confused between these two hooks, looks like they duplicate each other. Devs, please explain.
@@DaveGrayTeachesCode I mean like when u r typing forward quickly. Its only show the final text such as "222", but when u r removing character its show every text from " 22" "2" "" -> the final text How to make the console log only show the final text for backward typing?
@@eugenepranoto3824 it is due to not having as many records to filter when you have typed more characters. Therefore, going backwards, it gets the results faster to slower. When you start with no characters typed, it is slower to faster so you are able to type more before the app responds.
@@DaveGrayTeachesCode Sometimes my 2.5 brain cells stop and need a kick to start again, especially when so many things pull you back and lower your motivations. Thanks to you my friend👍
I am launching a Discord near the end of this month (June 2022). I hope to build a community that is helpful. I do not have the extra time to help with viewer's projects on my own.