hzfvictory / react-ssr Goto Github PK
View Code? Open in Web Editor NEWreact服务端渲染
react服务端渲染
使用 webpack 提前构建出 服务端的代码,然后交由 node 进行直出,所以我在想,能不能在 node 得到请求的时候,在去用 webpack 构建 , renderToString 得到 HTML 片段,交由客户端处理。
---- 有没有这种可能呢--- thk---
我现在 ssr 直出后,所有的 请求 都会到 node 服务,尤其是在页面跳转的时候。
所以我想,首次访问页面的时候,由 node 直出,其后的页面跳转 由客户端负责。 但实际上这个请求还是会到 node 上,我不得不使用重定向的方式,返回包含 client.js 的 html 以完成跳转。
----这个做法正确么---thk
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.