poi
poi copied to clipboard
Pre-render for React apps
💬 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
i would recommend looking at the ReactRouter.StaticRouter example as this seems the best way to get a location context into the build.