Skip to content

Commit

Permalink
Show alternative for fragment shorthand
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky committed Oct 29, 2020
1 parent 6e9a423 commit 99cfb43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/Layout.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Fragment } from 'react';
import React from 'react';
import Head from 'next/head';
import Header from './Header';

export default function Layout(props) {
return (
<Fragment>
<>
<Head>
<link rel="icon" href="/favicon.ico" />
</Head>
Expand All @@ -14,6 +14,6 @@ export default function Layout(props) {
<main style={{ padding: 30 }}>{props.children}</main>

<footer style={{ padding: 30 }}>footer here</footer>
</Fragment>
</>
);
}

0 comments on commit 99cfb43

Please sign in to comment.