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

Support server-rendered React #328

Closed
afc163 opened this issue Feb 7, 2017 · 16 comments
Closed

Support server-rendered React #328

afc163 opened this issue Feb 7, 2017 · 16 comments

Comments

@afc163
Copy link

afc163 commented Feb 7, 2017

like https://github.com/zeit/next.js/

@popomore
Copy link
Member

popomore commented Feb 7, 2017

现在搞的是这个 https://github.com/eggjs/egg-view-react

@shepherdwind
Copy link
Contributor

@popomore
Copy link
Member

popomore commented Feb 11, 2017 via email

@wangking873
Copy link

wangking873 commented Mar 31, 2017

建议出
1.egg-view-next(react)
2.egg-view-nuxt(vue2)

@ghost
Copy link

ghost commented Jul 30, 2017

egg-next看到有人写了一个egg-next来做这个事情

@MinJieLiu
Copy link

MinJieLiu commented Aug 10, 2017

强烈建议使用 next.js 作为 react 渲染方案😘,是因为作为 view 使用 react 没有如 ejs 那样简单。

前端构建都是一个复杂的过程。而 next.js 已经把相应的坑踩遍,两者搭配起来应该更好。

如果单独写一个 egg-view-react。那又有什么意义呢?那样又要重新踩一遍坑,不容易适应各种需求,而且迟迟不能稳定。

@popomore

@atian25
Copy link
Member

atian25 commented Aug 10, 2017

之前 next.js 1.x 的时候,好像对 koa 的支持不好,要 hack 的方式,现在不知道怎么样了。

可以单独写个 egg-nextjs

@dead-horse
Copy link
Member

我前一阵子研究 next.js 的时候还是不支持 koa 的,现在 koa 接入 next 都是通过设置 ctx.responed = false 后交由 next.js 处理响应,这个模式在 koa(egg) 下会导致很多中间件失效。

@hubcarl
Copy link

hubcarl commented Oct 25, 2017

基于Egg + React + Webpack3/Webpack2 多页面和单页面服务端渲染同构工程骨架项目: https://github.com/hubcarl/egg-react-webpack-boilerplate

@likeswinds
Copy link

https://github.com/nuxt-community/koa-template
墙裂建议

@djyde
Copy link

djyde commented Aug 7, 2018

Hi, I am working on https://github.com/djyde/serlina and its Egg binding https://github.com/serlina-community/egg-serlina I think this is the best serverside-rendering solution for Egg application!

https://medium.com/@djyde/serlina-a-progressive-react-serverside-rendering-framework-a4de2d71d984
https://medium.com/@djyde/egg-serlina-%EF%B8%8F-533493862698

@atian25
Copy link
Member

atian25 commented Aug 8, 2018

@djyde cool~ could add it to https://github.com/eggjs/awesome-egg

@fengmk2
Copy link
Member

fengmk2 commented Aug 8, 2018

@djyde serlina look beautiful!

@open-cipher
Copy link

Hi,

I've been working on a EggJS plugin that integrates NextJS. egg-frost

I have been able to set this plugin and render pages using NextJS render engine (in development mode).

I hope it helps. Feedback is always welcome 😄

@lirl-cn
Copy link

lirl-cn commented Sep 13, 2018

Hi,

I've been working on a EggJS plugin that integrates NextJS. egg-frost

I have been able to set this plugin and render pages using NextJS render engine (in development mode).

I hope it helps. Feedback is always welcome 😄

Read the document but don't use

@yangchongduo
Copy link

@dead-horse 给个导致很多中间件失败的demo ,如果导致了你怎么处理的?

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