StartTransition now accepts async functions. I don't have time to go over all of these functions, all of these features, but here's a snapshot of everything that's coming in React 19. And I'll pause here for one or two seconds in case anybody wants to take a screenshot.
If all of this went over your head and you're like, I'm just new to React, I just want to tell you that you don't have to upgrade to React 19 anymore. You don't have to upgrade to Write 19 just yet. React 18 and all of your knowledge about React 18 is still valid, but if you're looking for something that you want to understand how React works. I also have a course on O'Reilly. Here it is. I'll pause here for one or two seconds in case anybody wants to take a photo.
With that, I come to the end of my presentation, but we cannot leave with one final death joke. Thank you so much, everyone.
So, first question. Given that developers are generally used to the current interface, in your opinion, what is the advantage of React 19 has over something like React 18 and less or other compiled frameworks like Svelte?
Oh, good question. I think one of the big things that I'm seeing with React 19 is that I don't have to use useMemo and useCallback, especially in like scaled applications at work. And the reason is every time you build a component, you have to think about what are the data sets going in, you have to manually optimize it, look at performances, you have to look at the console to see what is the difference between useMemo and all of that. So, with React Compiler, you can kind of automatically do that and don't have to worry about one thing, which is honestly a big headache that's gone away. So, I'm really happy about that.
I think one thing that I'm also really excited about is how forms are now getting a really better support with React 19 as compared to React 18 and other versions. I think this is really good, especially for applications like form-based applications, something that I used to do at PayPal a lot, where we would have like 10 different input fields, and then you have to kind of manually see which fields have what data, and it was a mess with form data and React 19 getting better support for forms, it's becoming a lot easier, which is something I'm very excited about.
Yeah, definitely. Next question. What specifically is the difference between how the compiler works and useCallback useMemo?
Yeah, it's a really good question. The difference between React Memo and React Callback is that React compiler uses low-level optimizations. Specifically, it's using a hook called underscore c. It's an internal React hook that it's using for memoization as opposed to React useMemos. Nice.
Next one. Tools like Formic have made it pretty straightforward to work with form state in React. Do you expect people on Formic will use form status hooks instead?
Oh, that's a really good question.
Comments