redux-element
a custom element using redux
Last updated 7 months 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 (7 months ago)

6 Versions

  • 1.1.7                                ...           7 months ago
  • 1.1.6                                ...           7 months ago
  • 1.1.5                                ...           7 months ago
  • 1.1.4                                ...           8 months ago
  • 1.1.3                                ...           8 months ago
  • 1.1.2                                ...           8 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 6
Dependencies (11)
Dev Dependencies (7)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |