Skip to content

toomuchdesign/next-react-router

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Next.js + react-router

  • Install Next.js as usual
  • Configure custom server.js to redirect any request to same single entrypoint
  • Declare a with-react-router HOC to wrap the app with react-router browser or static router
  • Wrap the app with with-react-router HOC on page initialization with a custom ./pages/_app.js component
  • react-router is now able to universal render replacing native Next.js routing system

About

A documented attempt of using Next.js + react-router

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published