next.js/examples/with-flow/components/Page.js
Page.js23 lines353 B
// @flow
import React, { type Node } from "react";
import Head from "next/head";

type Props = {
  children: Node,
  title?: string,
};

export default function Page({
  children,
  title = "This is the default title",
}: Props) {
  return (
    <section>
      <Head>
        <title>{title}</title>
      </Head>
      {children}
    </section>
  );
}
Quest for Codev2.0.0
/
SIGN IN