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