@netology-group/wc-reaction

0.2.0 • Public • Published

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

/@netology-group/wc-reaction/

    Package Sidebar

    Install

    npm i @netology-group/wc-reaction

    Weekly Downloads

    4

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    841 kB

    Total Files

    28

    Last publish

    Collaborators

    • flyer3d
    • dkvovik
    • opensource-netology-group
    • aenesterov
    • alexkonst