Commit b0128c7e authored by Jesús Lobos's avatar Jesús Lobos Committed by Tim Neutkens

Fix "with-i18next" example (#4393)

* Fix "with-i18next" example

Fixes #4380

* Trailing space removed
parent 59aa5a4d
......@@ -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>
)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment