1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Fix "with-i18next" example (#4393)

* Fix "with-i18next" example

Fixes #4380

* Trailing space removed
This commit is contained in:
Jesús Lobos 2018-05-16 06:10:01 -04:00 committed by Tim Neutkens
parent 59aa5a4dde
commit b0128c7e2d

View file

@ -2,15 +2,12 @@ import React from 'react'
import { translate } from 'react-i18next'
class Post extends React.Component {
constructor (props) {
super(props)
this.t = props.t
}
render () {
const { t } = this.props
return (
<div>
{this.t('namespace1:greatMorning')}
{t('namespace1:greatMorning')}
</div>
)
}