Skip to content

Commit e70b6d9

Browse files
committed
year
1 parent f19ec27 commit e70b6d9

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

front-end/src/Footer.js

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
import "./Footer.css"
1+
import "./Footer.css";
2+
3+
const Footer = (props) => {
4+
const year = new Date().getFullYear();
25

3-
const Footer = props => {
46
return (
57
<footer>
6-
<p>&copy; 2021. All rights reserved.</p>
8+
<p>&copy; {year}. All rights reserved.</p>
79
</footer>
8-
)
9-
}
10+
);
11+
};
1012

11-
export default Footer
13+
export default Footer;

0 commit comments

Comments
 (0)