poi icon indicating copy to clipboard operation
poi copied to clipboard

Pre-render for React apps

Open egoist opened this issue 6 years ago • 1 comments

💬 Request for Comment

Similar thing has been added for Vue.js via @poi/plugin-vue-static so the next step is adding support to React/Preact apps, maybe as a third-party plugin poi-plugin-react-static.

  • poi --serve: Run this file as an SPA
  • poi --prod: Generate static HTML files and assets

egoist avatar Apr 12 '18 15:04 egoist

i would recommend looking at the ReactRouter.StaticRouter example as this seems the best way to get a location context into the build.

darcnite3000 avatar Apr 13 '18 08:04 darcnite3000