0.2.0 • Published 6 years ago

@netology-group/wc-reaction v0.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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