Skip to content

Commit

Permalink
Make a TypeScript file in gatsby-starter
Browse files Browse the repository at this point in the history
  • Loading branch information
blainekasten committed Apr 30, 2020
1 parent d548ed0 commit d706214
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
// Gatsby supports TypeScript natively!
import React from "react"
import { Link } from "gatsby"
import { PageProps, Link } from "gatsby"

import Layout from "../components/layout"
import SEO from "../components/seo"

const SecondPage = () => (
const SecondPage = (props: PageProps) => (
<Layout>
<SEO title="Page two" />
<h1>Hi from the second page</h1>
<p>Welcome to page 2</p>
<p>Welcome to page 2 ({props.path})</p>
<Link to="/">Go back to the homepage</Link>
</Layout>
)
Expand Down

0 comments on commit d706214

Please sign in to comment.