Hacker News new | ask | show | jobs
by socketcluster 1 day ago
Web Components are great for doing multi-pass rendering with template placeholder substitution happening at multiple levels in the component hierarchy. The entire element HTML hierarchy can be declared in one place. It's extremely versatile.

React cannot do this. It's difficult to explain without writing a whole essay but the benefits are very clear once you try this approach.

1 comments

True, but at the same time if you're building an app the number of times when you think "I want to render this HTML without hooking it into the data store, other components on the page, data fetch layer, logging implementation, etc" is literally zero.

React can't do the thing people building apps with React never do is not an argument against React.

React is for building React apps, in case that wasn't obvious.