2
0

index.jsx 412 B

123456789101112131415161718192021222324
  1. import React, { Component } from "react";
  2. import PropTypes from "prop-types";
  3. import { translate } from "react-i18next";
  4. @translate(["home"], { wait: true })
  5. export default class Home extends Component {
  6. static propTypes = {
  7. t: PropTypes.func,
  8. };
  9. static defaultProps = {
  10. t: () => {},
  11. };
  12. render() {
  13. const { t } = this.props;
  14. return (
  15. <div>
  16. <h2>{ t("home:title") }</h2>
  17. </div>
  18. );
  19. }
  20. }