▲ | indolering 14 hours ago | ||||||||||||||||||||||
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 13 hours ago | parent | next [-] | ||||||||||||||||||||||
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. | |||||||||||||||||||||||
| |||||||||||||||||||||||
▲ | notpushkin 13 hours ago | parent | prev | next [-] | ||||||||||||||||||||||
Do you have any benchmarks to back this up? | |||||||||||||||||||||||
▲ | teg4n_ 12 hours ago | parent | prev [-] | ||||||||||||||||||||||
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. |