Files
coopgo/node_modules/react-polyglot/example/greeter.js
sgauthier 6e64e138e2
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
planning
2024-10-14 09:15:30 +02:00

9 lines
179 B
JavaScript

import React from 'react';
import { translate } from '../lib';
const Greeter = ({ name, t }) => (
<h3>{t('hello_name', { name })}</h3>
);
export default translate()(Greeter);