(no title)
danielrhodes | 1 year ago
In terms of building a web app where you control the environment end-to-end, I don't think there's any inherent upside to using Web Components over React.
danielrhodes | 1 year ago
In terms of building a web app where you control the environment end-to-end, I don't think there's any inherent upside to using Web Components over React.
dylanjha|1 year ago
You nailed it that we are shipping SDKs with visual components (like a video player) that need to be compatible across all kinds of frontends.
Instead of N number of SDKs to maintain where N is every front end framework, we have 2: a web component, and a React wrapper around the web component. Maybe in the (near) future we only have to maintain 1.
spartanatreyu|1 year ago
The upside is that web components will last longer than react components.
There was a great blog post about this very thing and why someone chose them over react components in their use case (making their code migration-proof across updates and stack changes): https://jakelazaroff.com/words/web-components-will-outlive-y...
lmm|1 year ago
How much are you betting? React components have been around longer and are more widely established, so personally I'd expect them to last longer.
danielrhodes|1 year ago
What does it mean to "last longer" when it comes to your own codebase? And why would web components help with that?
wokwokwok|1 year ago
...which is the point the parent comment was making.
pier25|1 year ago
What about using web components in a server rendered application without needing to resort to running JavaScript in the server?
junon|1 year ago