the-component-mixins
v7.0.4
Published
Mixins for the-components
Readme
the-component-mixins
Mixins for the-components
Installation
$ npm install the-component-mixins --saveUsage
'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.
