The future of React is Svelte. Svelte was better than React, because it had a compiler. A compiler that could handle some of the logic for you, allowing Svelte to work with less instructions than React. But now, React got a compiler... so there's nothing stopping them from ripping of Svelte and in 6 months they'll be indistinguishable.
Your description of useCallback is wrong. It has nothing to do with the function doing something expensive because useCallback doesn't cache the result of the function. useCallback only facilitates skipping the re-rendering of subcomponents to which you pass the function.
I think saying obsolete is a bit much. So many companies use specific versions and won’t be using the new updates for a few years. But it’s great to see positive changes being introduced and I appreciate the video - very clear! And I hate useMemo and Callback, so this is great
I agree hahaha like i said, these are not breaking changes cause companies need time to upgrade their react versions. Many companies still haven't upgraded to react 18
I've been going through your 2022 beginner react course but I worry now what i learn isnt relevant anymore.. will you be doing an updated course for 2024?
I can make an update one :) Also, that one is still very relevant. Just skip the topics I mentioned in this video. Almost all of the rest is still the same!
Hi Pedro, in my organisation, whole components are wrapped with forward ref and we are using imperativehandle hook to create custom methods for page level validation and focus etc so with new react compiler you are saying, we can create custom ref method in child methods with imperative handle and can access directly in parent component without wrapping child component with forward ref? 😅
I believe that technically the useImperativeHandle hook will remain present and useful for situations like yours. The main change is related to how you get the ref to the hook.
As someone still learning React, I appreciate videos like these especially, so that I don't waste further time learning these concepts. It's also nice when you sit and break down your favorite x,y,z.
Build a cart and shopping page with it it will explain everything and get the products list from an api and also in the end atlist console log the product on submit from cart
The future of React is Svelte.
Svelte was better than React, because it had a compiler. A compiler that could handle some of the logic for you, allowing Svelte to work with less instructions than React.
But now, React got a compiler... so there's nothing stopping them from ripping of Svelte and in 6 months they'll be indistinguishable.
Your description of useCallback is wrong. It has nothing to do with the function doing something expensive because useCallback doesn't cache the result of the function. useCallback only facilitates skipping the re-rendering of subcomponents to which you pass the function.
Goes to show how these influencers don't know shit what they're talking about
Hi, Can you please elaborate on this one ? I need this for my interview.
I think saying obsolete is a bit much. So many companies use specific versions and won’t be using the new updates for a few years.
But it’s great to see positive changes being introduced and I appreciate the video - very clear! And I hate useMemo and Callback, so this is great
I agree hahaha like i said, these are not breaking changes cause companies need time to upgrade their react versions. Many companies still haven't upgraded to react 18
introducing memoization will make everything so easy
react is a cryptic shit
thanks pedrotech
That sounds very nice. useEffect was always...tricky haha.
in 2024, React is obselet. Htmx is trending ..so we need tutorial for htmx !😅
nice content bro carry on making stuff like this
I've been going through your 2022 beginner react course but I worry now what i learn isnt relevant anymore.. will you be doing an updated course for 2024?
I can make an update one :) Also, that one is still very relevant. Just skip the topics I mentioned in this video. Almost all of the rest is still the same!
Hi Pedro, in my organisation, whole components are wrapped with forward ref and we are using imperativehandle hook to create custom methods for page level validation and focus etc so with new react compiler you are saying, we can create custom ref method in child methods with imperative handle and can access directly in parent component without wrapping child component with forward ref? 😅
I believe that technically the useImperativeHandle hook will remain present and useful for situations like yours. The main change is related to how you get the ref to the hook.
1st
Great vid as always. I really would like to see the vid about how useEffect is used wrong. I have a feeling it would be very helpful.
I can make one!!
You think one day some things just like for react native😊
Probably!! But it will take some time
Thanks Pedro ❤
As someone still learning React, I appreciate videos like these especially, so that I don't waste further time learning these concepts. It's also nice when you sit and break down your favorite x,y,z.
Glad you like them!
Following you daily for the past week... love your tutorials
Awesome! Thank you!
Wow! Great video.
React and Nuxt is so frustrating with many bugs that I am moving to Nuxt and Vue
buddy you are a savior.
Build a cart and shopping page with it it will explain everything and get the products list from an api and also in the end atlist console log the product on submit from cart
Do you think I should rewrite my old React codebases (for job application projects) to use the new features, or can I keep them as they are?
No, just built update as you build more projects, no need to change the old ones.
What about the useState it is also obsolete?
no, that will probably take a long time to get obselete.
so what's the alternative of useEffect?
3:40 and 3:44
Yes please make a video about useEffect
❤
Hey bro can you tell should it require to learn backend before next js and if so than how much some average time to cover it
Not really! I recommend learning frontend first by using pubicly available API's
@@PedroTechnologies i have learn react js and going to learn typescript than next js that would correct or not
Подякував