Hacker News new | ask | show | jobs
by dynamite-ready 897 days ago
I understand some of the disparaging replies i regards to execution, but if I'm honest, as someone who writes a lot of React, the idea of ditching it for a universally support standard of any kind, is a very appealing idea.
1 comments

> 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 :)

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.