Example project for the ongoing RFC: Partial Hydration.
It's part of Gatsby 5, visit the Gatsby 5 Umbrella Discussion.
-
Clone this Gatsby site.
Clone this repository directly (Note: If you use the gatsby-cli new command, it will fail on npm install. This can be remedied-- skip to Install Dependencies step.)
git clone https://github.com/gatsbyjs/gatsby-partial-hydration-starter
-
Install Dependencies
We need to cd into the project directory and run
npm install
with an option:cd gatsby-partial-hydration-starter npm install --legacy-peer-deps
-
Start developing.
Start up the development server.
gatsby develop
-
Open the source code and start editing!
Your site is now running at
http://localhost:8000
!Note: You'll also see a second link:
http://localhost:8000/___graphql
. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby Tutorial.Open the
partial-hydration-starter
directory in your code editor of choice and editsrc/pages/index.js
. Save your changes and the browser will update in real time!
Deploy this starter with one click on Gatsby Cloud:
Build, Deploy, and Host On The Only Cloud Built For Gatsby
Gatsby Cloud is an end-to-end cloud platform specifically built for the Gatsby framework that combines a modern developer experience with an optimized, global edge network.