Framework-agnostic decorators-based custom elements.
- Optional renderer, like react, lit-html etc.
- Builtin state/props - store.
- Native elements, including extending.
Reference implementation, decorator names can be changed.
The code is mostly copy-paste from lit-element.
Requires .babelrc
(handler with parcel automatically):
{
"plugins": [
[
"@babel/plugin-proposal-decorators",
{
"decoratorsBeforeExport": true
}
],
"@babel/plugin-proposal-class-properties"
]
}