Hacker News new | ask | show | jobs
by zarzavat 1024 days ago
> Even when building a website, it is exceedingly convenient to compartmentalize large chunks of code into small, manageable UI components that can then be composed together.

React was designed by Facebook, a website that is mostly behind a login wall and not indexed. The complaint that React is bad for SEO is therefore somewhat ahistorical. Of course you can use React as a templating engine with SSR and it works just fine, but the original value proposition of React was interactivity.

It seems that nowadays the majority of people are using React in non-interactive contexts, which can be a bit weird for those of us who adopted it as a replacement for jQuery, rather than as a replacement for template engines.

1 comments

I did not even mention React in my comment :-) React isn't web components. React didn't even invent the idea of a ui component. I agree that Facebook created React for large interactive web sites; and I know that as a server-side templating engine, React is very slow compared to competition; which is why I desperately want web components to succeed on the server and to stardardize ergonomic component-based templating.