redux-element
a custom element using redux
Last updated 4 hours ago by kherrick .
AGPL-3.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install redux-element 
SYNC missed versions from official npm registry.

<redux-element>

Usage

Static Import Example:

Install:

npm i redux-element

Render:

<script type="module">
  import { defineCustomElements } from './node_modules/redux-element/dist/esm/defineCustomElements.js'

  defineCustomElements()
</script>
<decrement-button>
  decrement
</decrement-button>
<redux-element>count: </redux-element>
<increment-button>
  increment
</increment-button>

Dynamic Import Example:

Render:

<script>
  import('https://unpkg.com/redux-element/dist/esm/defineCustomElements.js')
    .then(({
      defineCustomElements
    }) => {
      defineCustomElements()
    })
</script>
<decrement-button>
  decrement
</decrement-button>
<redux-element>count: </redux-element>
<increment-button>
  increment
</increment-button>

Development

npm run start

Lint

npm run lint

Build

npm run build

Current Tags

  • 1.1.7                                ...           latest (4 hours ago)

6 Versions

  • 1.1.7                                ...           4 hours ago
  • 1.1.6                                ...           10 hours ago
  • 1.1.5                                ...           11 hours ago
  • 1.1.4                                ...           a month ago
  • 1.1.3                                ...           a month ago
  • 1.1.2                                ...           a month ago
Maintainers (1)
Downloads
Today 17
This Week 17
This Month 39
Last Day 22
Last Week 22
Last Month 43
Dependencies (11)
Dev Dependencies (7)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |