React 19 is here!

  Рет қаралды 4,311

Syntax

Syntax

Күн бұрын

Пікірлер: 21
@patricknelson
@patricknelson 6 ай бұрын
8:11 Svelte is great with web components, but still has some minor kinks here and there, particularly nesting in the light DOM and with supporting context. HMR too. That’s why I created svelte-retag which supports that, light DOM and even Vite HMR. I did all that since I loved Svelte but also needed a smooth way to integrate it into our legacy PHP monolith and so far it is working really great for us; especially context, which is a killer feature for us.
@syntaxfm
@syntaxfm 6 ай бұрын
Sick!
@patricknelson
@patricknelson 6 ай бұрын
It’s really great to see React supporting web components so well now. I’m _not_ a React dev but I see WC’s as a wonderful pivot point between various applications, particularly if you’re writing code that has to be shared across separate teams/apps/sites or making a library or something.
@syntaxfm
@syntaxfm 6 ай бұрын
For real. I'm all for it
@uidoyen
@uidoyen 6 ай бұрын
It is truly enlightening and provided valuable insights into the latest features and improvements in React 19
@rand0mtv660
@rand0mtv660 6 ай бұрын
23:40 I haven't tried this, but maybe it's possible to just use "onLoad" event handler on script tag? Same way you can do onLoad on an img tag for example.
@2penry2
@2penry2 6 ай бұрын
Zustand is different to context though, Zustand is global only. Context can be used in multiple places in the tree with different values.
@rand0mtv660
@rand0mtv660 6 ай бұрын
Yes true, but nothing stops you from using Context to inject a Zustand store which would then be a separate Zustand store instance for each of those component trees.
@rand0mtv660
@rand0mtv660 6 ай бұрын
Sorry, I commented before I got to the part where they talk about Context. Yeah, they only think about global Context at the top level of the app that only is a single instance of that Context. They aren't really considering the scenario where you might want to render Context multiple times in different trees and provide different values to each of those Contexts as you mentioned. Although admittedly, global Context is way way more common so it's understandable that comes to mind first.
@stolinski
@stolinski 6 ай бұрын
@@rand0mtv660 I still don't think context as a pattern is better than what's out there for instance local state. Preact signals, Recoil, Jotai are all better for that than context IMO.
@rand0mtv660
@rand0mtv660 6 ай бұрын
@@stolinski Hmm I gotta admit I haven't tried Recoil or Jotai, but also never really considered Context bad or not good. Only downside for me regarding Context is the "all consumers re-render" part.
@grinsk3ks
@grinsk3ks 6 ай бұрын
How do you write react components now? Functions, classes, web components?
@syntaxfm
@syntaxfm 6 ай бұрын
Functions is the way.
@patricknelson
@patricknelson 6 ай бұрын
Presumably the main method of authoring would be functions (over classes). Web components is different; more of a way to ship or share the components outside of React or in plain HTML alongside other stuff.
@ariosetiawan173
@ariosetiawan173 6 ай бұрын
no ForwardRef is key of imperativeHandle, now in 19 more easy to implement imperativeHandle :D
@SilvestreVivo
@SilvestreVivo 6 ай бұрын
Summarizing the podcast: React 19 tries to work like Svelte.
@syntaxfm
@syntaxfm 6 ай бұрын
Not quite yet. Hopefully someday they take more from svelte.
@Fallingstar-yy5iv
@Fallingstar-yy5iv 6 ай бұрын
Lit was terrible for writing web-components in. Svelte was far better. Mostly not having to lean on template string for all the html div description.
@grinsk3ks
@grinsk3ks 6 ай бұрын
I think lit was pretty lit. It feels very vanilla. Without all the framework jumbo. I just don't like classes very much. Very few good use cases for them. Ui components definitely not one of them.
The Modern Dev CMS - Pocketbase
25:25
Syntax
Рет қаралды 15 М.
The Local First Landscape
53:21
Syntax
Рет қаралды 8 М.
А я думаю что за звук такой знакомый? 😂😂😂
00:15
Денис Кукояка
Рет қаралды 3,9 МЛН
Next Gen Fullstack React with TanStack
1:02:33
Syntax
Рет қаралды 14 М.
The "Wrong Way" To Use React
39:30
Theo - t3․gg
Рет қаралды 136 М.
#226 - Why the Client Isn't Always Right (But Their Vision Is)
38:31
Modern JS Toolchains (Biome, Oxc + More)
47:52
Syntax
Рет қаралды 4,3 М.
Docker Crash Course for Developers | Hands on Examples
49:35
What happened to React 19?
7:31
Maximilian Schwarzmüller
Рет қаралды 23 М.
SolidStart 1.0 First Look: Comparing to React / Next.js
26:20
How to set up VSCode like a PRO!
1:05:36
Syntax
Рет қаралды 30 М.