Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea: create express (or another node.js server) middleware to render on the fly #83

Closed
stereobooster opened this issue Dec 31, 2017 · 0 comments

Comments

@stereobooster
Copy link
Owner

stereobooster commented Dec 31, 2017

This can be idea for separate project.

Related #71

  • Use node.js DOM implementation instead of puppeteer
  • Replace "react-dom" with "react-dom/server" on server side
  • Use caching for "react-dom/server"
  • Fake all browser APIs on the server, like JSDOM does

Why? Think of it as poor man's SSR - you write the client-side-only application and get SSR for free, but probably not that optimised SSR as you would get with manual implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant