Web Components with Next (or Any SSR Framework) can be used with any JavaScript framework. The problem is the lack of support for server-side rendering (SSR) There is something called the Declarative Shadow DOM (DSD) in the works, but current support for it is pretty minimal. The code to make Web Components do what they need to do won't actually run until hydration occurs. We’ll look at running that code.
Table of contents
The problemMoving our Web Component registration codeGetting startedCustom bundling Web Component codeLoading the scriptImproving performanceWrapping upSort: