Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jaredpalmer/react-router-nextjs-like-data-fetching
Demonstrating React Router 4's SSR awesomeness
https://github.com/jaredpalmer/react-router-nextjs-like-data-fetching
react react-router ssr
Last synced: 28 days ago
JSON representation
Demonstrating React Router 4's SSR awesomeness
- Host: GitHub
- URL: https://github.com/jaredpalmer/react-router-nextjs-like-data-fetching
- Owner: jaredpalmer
- Created: 2017-08-27T18:39:56.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-08T11:40:28.000Z (about 5 years ago)
- Last Synced: 2024-12-10T15:13:49.297Z (about 1 month ago)
- Topics: react, react-router, ssr
- Language: JavaScript
- Homepage: https://my-razzle-app-vheonerfmj.now.sh/
- Size: 65.4 KB
- Stars: 89
- Watchers: 5
- Forks: 12
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SSR Demo with React Router 4
## Install
Clone the repo and install deps...
```
git clone [email protected]:jaredpalmer/react-router-ssr.git
cd react-router-ssr
yarn install && yarn start
```Click around...
## What is going on here?
This little app demonstrates some cool SSR stuff you can do with React Router 4:
- Next.js-like data fetching using an HoC, static route config, and `matchPath`.
- "Client-only" routes...this translates to partial/selective SSR (because Routes are just components :wink:)
- Using RR4's `statusContext` to set HTTP status codes isomorphically.