4 ms·
Recent react versions have almost no dependencies, everything you add on top of that is on you. https://www.npmjs.com/package/react?activeTab=dependencies http
by homebrewer 2y ago
Recent react versions have almost no dependencies, everything you add on top of that is on you.
https://www.npmjs.com/package/react?activeTab=dependencies https://www.npmjs.com/package/react?activeTab=dependencies
https://www.npmjs.com/package/react-dom?activeTab=dependencies https://www.npmjs.com/package/react-dom?activeTab=dependenci...
If that's too heavy by itself, preact might be easier/simpler than reinventing the wheel.
- 65 2y agoIt's more not wanting to use virtual DOM and only wanting to render to strings for SSR. For example if I use useState or onClick handlers inside the JSX template, now I'll have to handle both client and server side code at the same time, which I want to avoid. If I only render a string from my JSX templates, I can separate all client side logic to Alpine. Easier to test and less overhead.