1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-10-25 03:36:51 +02:00
Files
csslayout/client/layouts/Layout.tsx
2019-11-24 23:36:43 +07:00

19 lines
339 B
TypeScript

import React, { useEffect } from 'react';
import Footer from './Footer';
const Layout: React.FC<{}> = ({ children }) => {
useEffect(() => {
window.scrollTo(0, 0);
}, []);
return (
<div className="mw8 mb5 center">
{children}
<Footer />
</div>
);
};
export default Layout;