@netology-group/wc-reaction
v0.2.0
Published
### Define module
Downloads
8
Keywords
Readme
Usage
Define module
ES
<script type="module">
import { ReactionList } from '@netology-group/wc-reaction/es/index.js';
window.customElements.define('reaction-list', ReactionList);
</script>
UMD
<script src="path/to/dist/index.js"></script>
<script>window.customElements.define('reaction-list', window.WCReactions.ReactionList);</script>
In HTML
Generic usage
<reaction-list></reaction-list>
How to
Demo
npm start
Run for development
npm run build -- --w
Build for production
NODE_ENV=production npm run build