You can have a max of one default export. I assum...
# package-development
m
You can have a max of one default export. I assume the person who does the 2nd pattern does it to avoid questions about how to import the element. It also helps avoid naming conflicts (if you choose a really common name for example). e.g. MyElement can be imported two ways:
Copy code
import { MyElement } from "package"
import WhateverIWishToCallIt from "package"
5 Views