27 lines
285 B
Markdown
27 lines
285 B
Markdown
# My component
|
|
|
|
`<my-component>` is a web component
|
|
|
|
## Example
|
|
|
|
Installation:
|
|
|
|
```bash
|
|
npm i my-component
|
|
```
|
|
|
|
Basic usage:
|
|
|
|
### index.html
|
|
|
|
```html
|
|
<my-component></my-component>
|
|
<script type="module" src="main.js"></script>
|
|
```
|
|
|
|
### main.js
|
|
|
|
```javascript
|
|
import "my-component";
|
|
```
|