the-component-mixins
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.