React 19 STABLE - I Can't Believe They Changed This

  Рет қаралды 38,036

ByteGrad

ByteGrad

Күн бұрын

Пікірлер: 72
@jonesaa2746
@jonesaa2746 Ай бұрын
Very professional, I like this guy more than other tubers
@guadalu
@guadalu 20 күн бұрын
Dude you are incredible explaining, thanks for this video! I already adjusted some things in my sideproject that is using React19
@katanaut
@katanaut Ай бұрын
Just to understand, now that we can use server side actions in React without next.js, we need to host react on any server, i.e bundled with vite? No more vercel? Or it seems like you are showing this example in next.js and server-side actions won't work without supporting framework like next.js
@system2072
@system2072 Ай бұрын
what if we need both web and a mobile app with an api wont this approach just cause overhead, i mean how can we approach if we want to serve both web and mobile app???
@Endrit719
@Endrit719 Ай бұрын
I don't really see the point of useActionState, I mean what am I benefiting from using action instead the onsubmit event? Weren't we moving to apis so that we could have backend client agnostic? Aren't we just going back to old way of doing it with PHP? I don't know what I am not understanding and would love someone to explain and convince me that this is worth it
@JoseHenrique-xg1lp
@JoseHenrique-xg1lp Ай бұрын
It's not necessarily bad. Using action saves you from a lot of boilerplate. SSR is very fast, smooth and can be much easier to implement things like form hydration, forbidden / unauthorized redirects.
@dmytrodev4631
@dmytrodev4631 Ай бұрын
Interesting how it will work with denounce for searching) maybe I will try it on my work)
@seangarnier3530
@seangarnier3530 Ай бұрын
this video almost is based on framework or NEXTJS so all the people having questions please calm down, this won't be applicable to react only or vite apps. this all works with a full stack framework. no we are not going back to PHP ways.
@tuannguyenanh7466
@tuannguyenanh7466 Ай бұрын
Head over Svelte, it has server and client explicitly, which is easier to understand than a React
@Lapatate-s1l
@Lapatate-s1l Ай бұрын
@@tuannguyenanh7466 yes svelte is very cool , very easy to understand and very flexible . But doesn’t pay the bills sadly . That’s why most people stick with react and next js ..
@RobinGiel
@RobinGiel Ай бұрын
Thanks for all the info and content 🙂
@Lapatate-s1l
@Lapatate-s1l Ай бұрын
Thanks . Helpful videos as always . Do you plain any long video of building full project with crud using pgsql prisma and next 15 or react 19 ? That would be huge
@ByteGrad
@ByteGrad Ай бұрын
Great idea
@Lapatate-s1l
@Lapatate-s1l Ай бұрын
@ you the goat 🫡
@bopon4090
@bopon4090 Ай бұрын
So whats the difference between usestate and useoptimistic??
@afonsopimenta
@afonsopimenta Ай бұрын
Hi, useState is meant to store some state in the client. useOptimistic is meant to store some state that is synced with some value on your server, and updates even before your server gives an answer. For example, imagine you have a social media app where you have a like button with a likes counter. You can have you likes be handled with the useOptimistic hook, and when you click it, it will instantly increment the like and send the POST request to the server. After some time, when the server responds, if it responds with an OK status, nothing will happen, but if it responds with an error, the useOptimistic hook will automatically roll back the like count to the value that it had before you clicked the button. Hope this helped :)
@huzaifaqayyum786
@huzaifaqayyum786 Ай бұрын
​@@afonsopimenta appreciated
@OnlyJavascript
@OnlyJavascript Ай бұрын
@@afonsopimenta what's the use?
@Endrit719
@Endrit719 Ай бұрын
not much, it rolls back automatically to previous value on error, with useState u would have to handle it manually
@salijoghli
@salijoghli 13 күн бұрын
@@afonsopimenta that sounds intresting. thanks
@aymenbachiri-yh2hd
@aymenbachiri-yh2hd Ай бұрын
Thank you for the video
@eile4219
@eile4219 Ай бұрын
i tried to use form Action. Not sure why the server action is a get call.
@LutherDePapier
@LutherDePapier Ай бұрын
1:12 That's false, actions are not obliged to run on the server only, you can effectively make client actions.
@RyanGause-lj8sn
@RyanGause-lj8sn Ай бұрын
Love your content.
@carlosricardoziegler2650
@carlosricardoziegler2650 Ай бұрын
Nice video, but think React Compile is not enabled because still under construction. You need enable it in NextJS
@trandat4679
@trandat4679 Ай бұрын
Hi guys i got a confused error hope u can help. I am using nextjs14 and react 18. I defined a server action fetchData() I call that action in useEffect hook on a client component. The error began there. Action actually got called. But not return data to client component. When i called that action on a server component. It does return data
@meka4996
@meka4996 Ай бұрын
Very nice. Thanks
@waleedsharif618
@waleedsharif618 Ай бұрын
I wonder why they did not talk about React Compiler when React 19 was released few days ago
@Divineleo2023
@Divineleo2023 Ай бұрын
Because its still in beta
@pensive7511
@pensive7511 Ай бұрын
great content!
@nguyenmanhcuong9434
@nguyenmanhcuong9434 Ай бұрын
Hi Wesley. Does "NEW React & Next.js" course cover Next.js 15?
@shawnmclean7707
@shawnmclean7707 Ай бұрын
What if there is a network or server issue where the action was not even hit? For example, what if the host throws something like a 413 status for body size too much or a rate limit? How does the client get this status code?
@seppdaniel
@seppdaniel Ай бұрын
You handle it the same way you would handle a fetch call.
@DubinArtur
@DubinArtur Ай бұрын
Кайф, огонь. Обязательно надо попробовать. Я так давно хотел чего-нибудь нового, и вот оно пришло
@pairofrooks
@pairofrooks Ай бұрын
tip: if you're trying to show how a bit of js code works, remove the multiline classNames which dominate the screen
@hooooman.
@hooooman. Ай бұрын
Yeah, I think there is a vs code extension exactly for this purpose, which helps to hide the classes inside className with a three dot.
@its4zahoor
@its4zahoor Ай бұрын
Name of extension?
@hooooman.
@hooooman. Ай бұрын
@@its4zahoor Tailwind Fold
@FragPoney
@FragPoney Ай бұрын
@@hooooman.amazing thank you
@josipX
@josipX Ай бұрын
So what changed since the release candidate?
@dmtr_ptrv
@dmtr_ptrv Ай бұрын
Thanks for good video, but to be honest, it seems to me that React took a wrong turn: These new features and hooks solve problems that essentially do not exist in modern development It also look very inappropriate from the point of view of HTML elements: it’s strange that I’m passing some function to the action field that has nothing to do with how the action field of a form element is processed in HTML
@cunningham.s_law
@cunningham.s_law Ай бұрын
so create-react-app now will come with a server?
@User948Z7Z-w7n
@User948Z7Z-w7n Ай бұрын
Server means your terminal lol. Unless you deploy to some services or have your own server
@afonsopimenta
@afonsopimenta Ай бұрын
Hi, it does not. Even though react has all of this server features built in now, they are meant to be used by Framework and Library authors, your react app will not have this feautures by default. I might be wrong, but I think you can have these features by serving your react app on an Express server. Don't quote me on that though 'cause I haven't done research on the topic. I hope this helps :)
@its4zahoor
@its4zahoor Ай бұрын
create-react-app is deprecated and not maintained. React now recommends using a framework of your choice
@User948Z7Z-w7n
@User948Z7Z-w7n Ай бұрын
@@afonsopimenta You can use server component on basic CRA app. Framework is just for convenience. They should never be the only way you can do something
@afonsopimenta
@afonsopimenta Ай бұрын
@@User948Z7Z-w7n Are you sure? Can you show me a repository where that is that case? I believe I read somewhere that you could not, but I might be wrong so, if you could show me one that would be great :) Always up for some learning
@regilearn2138
@regilearn2138 Ай бұрын
need next js 15 full coures
@LutherDePapier
@LutherDePapier Ай бұрын
And they're no longer called Actions by the way.
@truthalwaysprevails662
@truthalwaysprevails662 Ай бұрын
I am staying on react 18 until it reaches EOL
@MsVsmaster
@MsVsmaster Ай бұрын
react query ftw!
@squarerootof2
@squarerootof2 Ай бұрын
OMG! OMG!!! OMFG!!! I can't believe this! I refuse to believe it. It is INCREDIBLE!!! Why did they have to change this??? Why???Oh ,...no nooooo!!!
@MatheusBraunaDev
@MatheusBraunaDev Ай бұрын
This is next Theo video title?
@SalmanKhan-yc2ll
@SalmanKhan-yc2ll Ай бұрын
Thank God for no more forwardRef
@mahdiuser100p8
@mahdiuser100p8 Ай бұрын
imagine you drop 19 versions and still garbage takes some skill
@kashmirtechtv2948
@kashmirtechtv2948 7 күн бұрын
why? :)
@tangsi721
@tangsi721 Ай бұрын
does it mean we can ditch the ridiculous nextjs forever from now? 😂
@bopon4090
@bopon4090 Ай бұрын
Use not for accessing context. Use is for resolving promises.
@evheniydan
@evheniydan Ай бұрын
You can use use (pun intended) for both :)
@youarethecssformyhtml
@youarethecssformyhtml Ай бұрын
No actually. It can be used for both.
@gttrackpro9433
@gttrackpro9433 Ай бұрын
react Library slowly become react framework
@mariokrstevski8836
@mariokrstevski8836 Ай бұрын
NEXT15 - If you want the react compiler you would have to sacrafice the existing rust compiler in nextjs, unless your app is really slow and needs it, don't do it as of now.
@youarethecssformyhtml
@youarethecssformyhtml Ай бұрын
Most apps anyways are fast anyways
@henriquebarros8303
@henriquebarros8303 Ай бұрын
It's incredible that guys think that React or Vercel "created" a thing that is already built in on HTML + Ajax
@nazzanuk
@nazzanuk Ай бұрын
Tailwind is so ugly
@ulterior_web
@ulterior_web Ай бұрын
PandaCSS is where it’s at
@EnesKab
@EnesKab Ай бұрын
Please slow down a bit. So hard to follow. I can give few more mins to watch the video.
@its4zahoor
@its4zahoor Ай бұрын
0.75x
@EnesKab
@EnesKab Ай бұрын
@@its4zahoor My comment is for him, not you.
React 19 is finally out!
28:01
Theo - t3․gg
Рет қаралды 78 М.
Next.js 15 Top 8 Changes - I'm Amazed At What They Changed
18:58
How to have fun with a child 🤣 Food wrap frame! #shorts
0:21
BadaBOOM!
Рет қаралды 17 МЛН
React 19: The Latest Features You Actually Want
13:05
Shruti Kapoor
Рет қаралды 4,6 М.
Forms with React 19 and Next.js
9:13
leerob
Рет қаралды 40 М.
The SQLite Rewrite In Rust
22:15
ThePrimeTime
Рет қаралды 198 М.
Vite 6 is important, here's why
19:35
Theo - t3․gg
Рет қаралды 109 М.
How To Build Feature Flags Like A Senior Dev In 20 Minutes
20:33
Web Dev Simplified
Рет қаралды 116 М.