Anyone that can point to any documentation on howto reuse code in lit-element.
The problem now is that if I declare an element, in my case a close-button
and I want to reuse it by importing it into 2 or more lit-elements, there will be an error in the browser about the close-button
being declared more than once.
Understandable enough, but how do I reuse a component, I could of course move the button to a separate file and add it to the document, but then there would be dependencies on that for other components to work.
Any suggestions
After investigating a bit more, I concluded that sharing HTML templates might be the way to do it.