the-component-mixins

Mixins for the-components


Keywords
the
License
MIT
Install
npm install the-component-mixins@1.3.9

Documentation

the-component-mixins

Build Status npm Version JS Standard

Mixins for the-components

Installation

$ npm install the-component-mixins --save

Usage

'use strict'

const { localized, compose } = require('the-component-mixins')
const React = require('react')

async function tryExample () {
  compose(
    localized,
  )(
    class App extends React.Component {
      render () {
        const { l } = this.props
        return l('messages.HELLO_WORLD')
      }
    }
  )

  /* ... */
}

tryExample().catch((err) => console.error(err))

API Guide

License

This software is released under the MIT License.

Links