mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
e11d08ae45
* update with-react-i18next supporting new _app.js * update readme to not encourage cloning of repo
23 lines
625 B
JavaScript
23 lines
625 B
JavaScript
import React from 'react'
|
|
import Link from 'next/link'
|
|
|
|
import PureComponent from '../components/PureComponent'
|
|
import ExtendedComponent from '../components/ExtendedComponent'
|
|
import ComponentWithTrans from '../components/ComponentWithTrans'
|
|
import { withI18next } from '../lib/withI18next'
|
|
|
|
const Page2 = ({ t }) => (
|
|
<div>
|
|
<h1>{t('welcomePage2')}</h1>
|
|
<p>{t('common:integrates_react-i18next')}</p>
|
|
<PureComponent t={t} />
|
|
<ExtendedComponent />
|
|
<ComponentWithTrans />
|
|
<Link href='/'>
|
|
<a>{t('link.gotoPage1')}</a>
|
|
</Link>
|
|
</div>
|
|
)
|
|
|
|
export default withI18next(['page2', 'common'])(Page2)
|