Hacker News new | ask | show | jobs
by troupo 897 days ago
> ditching it for a universally support standard of any kind

RawJS ain't it.

If anything, React' JSX is the universally supported standard these days :)

1 comments

React is great when you absolutely need state management on the frontend, but is overkill for the vast majority of frontend components to the point I would say it basically doubles the time to create a SPA. I wish I could just import it for one-off components and use traditional HTML rendered by the server for everything else.
You can use many other frameworks for that like Svelte (with SvelteKit), or Solid (with SolidStart)
We can also use React for that–the issue is the bundle size and it does not appear to be designed to share the DOM. I would love to see these smaller libraries document the process and best practices for using them within otherwise vanilla environments.