1.3.2 • Published 7 years ago

breact-wrap v1.3.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

breact-wrap

Build Status npm Version JS Standard

Wrapper utility for breact

Installation

$ npm install breact-wrap --save

Usage

'use strict'

const React = require('react')
const { combine } = require('breact-wrap')

class Component01 extends React.Component { /* ... */ }

// Combine wrappers
const WrappedComponent01 = combine(
  (Component) => class Wrapped extends Component {

  }
)(Component01)

Functions

Available functions

SignatureDescription
combine(wrappers) -> functionCombine multiple wrappers into one
cycle() -> PromiseDo with cycle
prefixOf(component) -> stringGet prefix of wrapped component
scoped() -> Scoped

License

This software is released under the MIT License.

Links

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago