Giter Site home page Giter Site logo

react-ssr's People

Contributors

hzfvictory avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

react-ssr's Issues

关于构建方式

使用 webpack 提前构建出 服务端的代码,然后交由 node 进行直出,所以我在想,能不能在 node 得到请求的时候,在去用 webpack 构建 , renderToString 得到 HTML 片段,交由客户端处理。

---- 有没有这种可能呢--- thk---

两端路由

我现在 ssr 直出后,所有的 请求 都会到 node 服务,尤其是在页面跳转的时候。
所以我想,首次访问页面的时候,由 node 直出,其后的页面跳转 由客户端负责。 但实际上这个请求还是会到 node 上,我不得不使用重定向的方式,返回包含 client.js 的 html 以完成跳转。

----这个做法正确么---thk

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.