Skip to content

juanmaguitar/react-router-nextjs-like-data-fetching

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SSR Demo with React Router 4

Original Repo tha can be found at https://github.com/jaredpalmer/razzle w/ some custom modifications

Install

Clone the repo and install deps...

git clone git@github.com: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 😉)
  • Using RR4's statusContext to set HTTP status codes isomorphically.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published