JavaScript
Public
Simple React Footer
A basic React functional component for a website footer.
JavaScript
import React from 'react';
const Footer = () => {
return (
<footer style={{
textAlign: 'center',
padding: '1rem',
backgroundColor: '#f1f1f1',
position: 'fixed',
bottom: 0,
width: '100%'
}}>
<p>© {new Date().getFullYear()} My Website. All rights reserved.</p>
</footer>
);
};
export default Footer;