I’m creating a customisable web widget and will probably wrap it in web component so it’s easier to embed in websites.
I’m considering approaches including React. What are the merits/drawbacks, or recommended approach?
- React 19
- I heard it can be bad practice to make a widget require downloading a framework (React). If the encompassing website also uses a frontend framework, the overall webpage would be doubly heavy
- Next.js
- With Server components, doesn’t this solve the above problem?
- Pure web component (Lit)
- It definitely won’t increase the download size much of the embedding webpage, does this mean it would be best practice option?
New contributor
user4367814 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.