@socketsupply/tonic
v15.1.2
Published
A component framework.
Downloads
42
Readme
Installation
npm install @socketsupply/tonic
Usage
import Tonic from '@socketsupply/tonic'
class MyGreeting extends Tonic {
render () {
return this.html`<div>Hello, World.</div>`
}
}
Tonic.add(MyGreeting, 'my-greeting')
After adding your Javascript to your HTML, you can use your component anywhere.
<html>
<head>
<script src="my-greeting.js"></script>
</head>
<body>
<my-greeting></my-greeting>
</body>
</html>
Useful links
Copyright (c) 2023 Socket Supply Co.
MIT License