Created
April 21, 2021 21:17
-
-
Save richleach/0752b87b7b260dfb5cdb109997c0033e to your computer and use it in GitHub Desktop.
Footer.js in action (display current date dynamically in Javascript (React)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getYear() { | |
return new Date().getFullYear() | |
} | |
function Footer() { | |
return ( | |
<footer className="footer bg-dark py-1 text-center"> | |
Copyright © {getYear()} richleach.com. All Rights Reserved. Please don't steal my stuff. | |
</footer> | |
) | |
} | |
export default Footer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment