3 ms·
If we're not doing any state manipulation and are just using static props I don't see why we even need any abstraction at all. I would really like to see an exa
by Kiro 3y ago
If we're not doing any state manipulation and are just using static props I don't see why we even need any abstraction at all. I would really like to see an example where "setShowTooltip" is used and the equivalent is implemented in Web Components. That's the part React is solving for me.
- quickthrower2 3y agoBut that is just going to be the vanilla JS and React versions of the same thing. React doesn’t solve UI. It solves state management of UIs (IMO).
- untitaker_ 3y ago> If we're not doing any state manipulation and are just using static props I don't see why we even need any abstraction at all. People are using React outside of SPAs just because they're already used to it, and because it's got a rich ecosystem of reusable components. I don't know how to implement setShowTooltip in vanilla js and webcomponents. It is probably really ugly. But also, making your web components work with progressive enhancement does not necessarily mean you have to get rid of React. You can still use React to define a custom HTML element, and combine the state management of React with the progressive enhancement of web components.