Skip to content

Instantly share code, notes, and snippets.

@sparrow
Last active September 18, 2020 09:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sparrow/418718804cf02442a2c08dfef50c0b41 to your computer and use it in GitHub Desktop.
Save sparrow/418718804cf02442a2c08dfef50c0b41 to your computer and use it in GitHub Desktop.
This code snippet is an example of using static generation to pre-render a React app with Next.js. This code snippet is from the article originally published on RubyGarage’s blog: https://rubygarage.org/blog/how-to-integrate-ssr-for-react-app
function About() {
return <div>About</div>
}
export default About
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment