score:0

import moment from 'moment';

...
const Footer = () => {
    return (
      <footer className="main-footer">
        <strong>
          Copyright © {moment().format('Y')}
        </strong>
        All rights reserved.
      </footer>
    );
  };
...
export default Footer;

Related Query

More Query from same tag