cra-template-phectr
Version:
Create React App template with Pullstate, Helmet, Emotion, Chakra UI, TailwindCSS (twin.macro) and React Router.
22 lines (18 loc) • 498 B
JavaScript
import { Helmet as Head } from "react-helmet-async";
import tw, { styled } from "twin.macro";
const Layout = ({ title, description, children, ...props }) => {
return (
<>
<Head>
<title>{title}</title>
<meta name="description" content={description} />
<link rel="icon" href="/favicon.ico" />
</Head>
<Container {...props}>{children}</Container>
</>
);
};
const Container = styled.div`
${tw``}
`;
export default Layout;