import React from 'react'

export default function Footer() {
  const today = new Date().getFullYear()

  return(
    <nav id="footer" className="row">
      <div className="col s12">
        <h5>{ today }</h5>
      </div>
    </nav>
  )
}

@@ -23,59 +23,141 @@
 ct'%0A
-%0Aex
+im
 port 
-default function Footer() %7B%0A  const today =
+%7B withRouter %7D from 'react-router'%0A%0Afunction Footer(%7B location %7D) %7B%0A  const date = (location.pathname === '/1717') ? '17:17' :
  new
@@ -276,15 +276,12 @@
 h5%3E%7B
- today 
+date
 %7D%3C/h
@@ -313,8 +313,44 @@
 %3E%0A  )%0A%7D%0A
+%0Aexport default withRouter(Footer);%0A

make x footer year dynamic