import React, { Component } from 'react';

const currentYear = new Date().getFullYear();

export default class Copyright extends Component {
  render() {
    return <span>&copy; {currentYear} David Minnerly</span>;
  }
}

import React, { Component } from 'react';

export default class Copyright extends Component {
  getYear() {
    return new Date().getFullYear();
  }

  render() {
    return <span>&copy; {this.getYear()} David Minnerly</span>;
  }
}

Create a method for getting copyright year
Create a method for getting copyright year
