15.1.2 • Published 2 years ago

@socketsupply/tonic v15.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

tonic

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

15.1.2

2 years ago

15.1.1

2 years ago

15.0.0

3 years ago

15.1.0

3 years ago

14.1.2

3 years ago

14.1.3

3 years ago

14.1.4

3 years ago

14.1.5

3 years ago

14.1.1

3 years ago

14.1.0

3 years ago