the-component-mixins

7.0.4 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i the-component-mixins

Weekly Downloads

9

Version

7.0.4

License

MIT

Unpacked Size

452 kB

Total Files

111

Last publish

Collaborators

  • okunishinishi