Comment by indolering

Comment by indolering 4 hours ago

3 replies

Not unless you can develop an equivalent to React Native. That's the rub here: browser tech is just way slower than what can be achieved with native code. React's primary value (now) is deduping GUI development across platforms.

diiiimaaaa 3 hours ago

Not only that.

My main problem with web components that you end up with a build step anyway.

Not every component is interactive and relies on JS, some are just static elements (say avatar image) that you wanna render right away (but at the same time keep styles and logic scoped). Declarative shadow DOM helps, but you end up with a bunch of duplicate code in your final output, which begs the question - why am I using web components at all.

teg4n_ 2 hours ago

This isn’t really true with React Native, Hermes as a JS engine is just drastically slower than JIT-enabled web view . Sure the “native” parts will theoretically be faster but your app code will be a lot slower. Just test how long a rerender takes in react native on a device than react on a browser for the same device.