Skip to content

Commit

Permalink
[docs] Add React SPA demos to repo and site (#179)
Browse files Browse the repository at this point in the history
* Home section around over-prefetching.

* Over-prefetching partial.

* Changing carousel by content.

* Adding link to React SPA demo to repo and site.

* Shorter version of Glitch git URL.
  • Loading branch information
demianrenzulli authored May 11, 2020
1 parent fe43486 commit 179cb56
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
15 changes: 15 additions & 0 deletions demos/spa/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Demo: Quicklink integration for create-react-app
A demo showing how to use Quicklink with in a create-react-app site.
To integrate your React SPA with Quicklink, follow the steps [here](/~https://github.com/GoogleChromeLabs/quicklink#single-page-apps-react).

## Glitch Source
* [Link to Glitch App](https://create-react-app-quicklink.glitch.me/)
* [Link to Project on Glitch](https://glitch.com/~create-react-app-quicklink)

## Installation
```
git clone https://api.glitch.com/git/create-react-app-quicklink
npm install
npm start
npm run build
```
2 changes: 2 additions & 0 deletions site/src/demo.njk
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ sections:
-
description: A demo showing how to use Quicklink with Workbox for offline caching and links in the visible viewport.
link: "* [Using Quicklink with Service Workers (via Workbox)](/~https://github.com/GoogleChromeLabs/quicklink/tree/master/demos/news-workbox)"
- description: A demo showing how to integrate Quicklink with create-react-app.
link: "* [Using Quicklink in a React single-page app](/~https://github.com/GoogleChromeLabs/quicklink/tree/master/demos/spa)"
---
{% extends "layouts/normal-section-wrapper.njk" %}
{% block section %}
Expand Down

0 comments on commit 179cb56

Please sign in to comment.