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 afc163 commented Feb 7, 2017

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

@popomore
Copy link
Member

@popomore popomore commented Feb 7, 2017

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

@shepherdwind
Copy link
Contributor

@shepherdwind shepherdwind commented Feb 11, 2017

@popomore
Copy link
Member

@popomore popomore commented Feb 11, 2017

@wangking873
Copy link

@wangking873 wangking873 commented Mar 31, 2017

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

@ghost
Copy link

@ghost ghost commented Jul 30, 2017

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

@MinJieLiu
Copy link

@MinJieLiu MinJieLiu commented Aug 10, 2017

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

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

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

@popomore

@atian25
Copy link
Member

@atian25 atian25 commented Aug 10, 2017

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

可以单独写个 egg-nextjs

@dead-horse
Copy link
Member

@dead-horse dead-horse commented Aug 12, 2017

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

@MinJieLiu MinJieLiu mentioned this issue Aug 31, 2017
0 of 1 task complete
@hubcarl
Copy link

@hubcarl hubcarl commented Oct 25, 2017

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

@likeswinds
Copy link

@likeswinds likeswinds commented Dec 6, 2017

@popomore popomore closed this Mar 25, 2018
@atian25
Copy link
Member

@atian25 atian25 commented Aug 8, 2018

@fengmk2
Copy link
Member

@fengmk2 fengmk2 commented Aug 8, 2018

@djyde serlina look beautiful!

@akshayKrSingh
Copy link

@akshayKrSingh akshayKrSingh commented Aug 28, 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 😄

@lirl-cn
Copy link

@lirl-cn 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

@yangchongduo yangchongduo commented Oct 3, 2018

@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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet