Better element for the web
web-component-tester
works without any issue with Java 8)
# Install via NPM
$ npm install try-lit-element
<!-- For the sake of brevity, the HTML below is just for reference -->
<!doctype html>
<html>
<head>
<!-- Native ES modules -->
<script type="module" src="/path/to/my-element.js"></script>
</head>
<body>
<!-- Element declaration -->
<my-element></my-element>
</body>
</html>
import { css, html, LitElement } from 'lit-element';
import 'try-lit-element.js';
class MainApp extends LitElement {
public static styles = [
css`
:host {
display: block;
}
* {
box-sizing: border-box;
}
`,
];
protected render() {
return html`
<my-element></my-element>
`;
}
}
MIT License Rong Sen Ng (motss)