Next.js Discord

Discord Forum

Where to register custom elements Next.js 14 App Router

Unanswered
Cassin's Finch posted this in #help-forum
Open in Discord
Cassin's FinchOP
Hey all, I am looking to bring in a lit web component from a npm package and am not sure where to register the element.

Currently I have it being imported (the import will register the component) inside of a react component where i did use client but I feel that this is not the ideal way and haven't seen anything in the docs related to the topic. Anybody have thoughts on how to do this properly?

0 Replies