Skip to content

seamlessly integrate fastify and react, for high performance SSR

License

Notifications You must be signed in to change notification settings

davidmarkclements/fastify-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fastify-react

seamlessly integrate fastify and react, for high performance SSR

Status: WIP

Install

npm install fastify-react

Usage

fastify.register(require('fastify-react'), {
  dev: process.env.NODE_ENV !== 'production',
  html: (app) => `
    <!DOCTYPE html>
    <html>
    <head></head>
    <body>
      <div id="app">${app}</div>
      <script src="main.js"></script>
    </body>
    </html>
  `,
  root: 'path/to/App/component'
})

License

MIT

About

seamlessly integrate fastify and react, for high performance SSR

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published