Our great sponsors
-
lit-element
LEGACY REPO. This repository is for maintenance of the legacy LitElement library. The LitElement base class is now part of the Lit library, which is developed in the lit monorepo.
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Alternatively, if you're mainly worried about bundle size, Preact gives you all the features of React, with React-compatible code, in 3kB. I don't think it'll sufficiently change runtime performance, but it'll definitely help keep your JS tiny.
Web components are a good start, but it is better to use LitElement to build them in that case, instead of using it directly.
Preact is a pretty popular react-like library with a much smaller bundle size. Nextjs uses normal react, but allows offloading some or most of the runtime overhead by pre-rendering as a static site or server-side rendering on a nodejs server.
I will still suggest a framework (technically it’s a language/compiler), but you should check out Svelte, Fireship made a great intro video for it.
With the new SvelteKit, there’s a bunch of adapters you can use to export to static files, Netlify with SSR, a regular Node server, etc.