Outline
In this video, we learn about Gatsby Link
.
We can import { Link } from "gatsby"
in order to usethe Gatsby Link
tag. We use Link
just like any other JSX component, and we pass in a to
input with the route.
In this video, we link to /about
from index.js
and /
from about.js
.
In the video, I mention Prettier but don't explain what it is. Prettier is a code formatting tool that lets you specify formatting rules in a JSON config document. It can work really well wtih editors like Visual Studio Code. For example, you can have it auto-format on save. Check it out!