I'm not convinced you need React/Next.js even in those cases. Web components work and LLMs are so capable of using them that I find there is increasingly little utility in big frameworks.
No idea why this idea is being downvoted, because it is totally correct, even more so in the LLM-coding era.
Any web components solution is probably going to be as big as React