0.0.5 • Published 1 year ago
be-one-and-only v0.0.5
be-one-and-only
<template be-one-and-only="Zhou Sheng Chen">
My content
</template>
<template be-one-and-only="Zhou Sheng Chen">
My content
</template>
... only one instance is instantiated in any single Shadow DOM realm.
Viewing Locally
- Install git.
- Fork/clone this repo.
- Install node.
- Open command window to folder where you cloned this repo.
npm install
npm run serve
- Open http://localhost:3030/demo/dev in a modern browser.
Importing in ES Modules:
import 'be-one-and-only/be-one-and-only.js';
CDN
import 'https://esm.run/be-one-and-only';