@hikaruna/hello-world-web-component
v1.0.0
Published
単純なwebcomponentのサンプルです。
Downloads
5
Readme
hello-world-web-component
単純なwebcomponentのサンプルです。
Usage
From Web
<hello-world></hello-world>
<script type="module">
import HelloWorld from 'https://unpkg.com/@hikaruna/hello-world-web-component/hello-world.mjs'
customElements.define('hello-world', HelloWorld);
</script>
詳しくは example.html を参照
From npm
$ npm i @hikaruna/hello-world-web-component
import HelloWorld from '@hikaruna/hello-world-web-component';
// use HelloWorld
Development
$ docker-compose up
$ open http://localhost:3000/example.html