import React from 'react';
import { NamespacesConsumer } from 'react-i18next';
function TranslatableView() {
<NamespacesConsumer ns={[
(t, { i18n, ready }) => (
<h1>{t('keyFromDefault')}</h1>
<p>{t('anotherNamespace:key.from.another.namespace', { /* options t options */ })}</p>