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

Comments

Projects
None yet
@afc163
Copy link

afc163 commented Feb 7, 2017

@popomore

This comment has been minimized.

Copy link
Member

popomore commented Feb 7, 2017

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

@shepherdwind

This comment has been minimized.

Copy link
Contributor

shepherdwind commented Feb 11, 2017

@popomore

This comment has been minimized.

Copy link
Member

popomore commented Feb 11, 2017

@wangking873

This comment has been minimized.

Copy link

wangking873 commented Mar 31, 2017

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

@Tomatoo

This comment has been minimized.

Copy link

Tomatoo commented Jul 30, 2017

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

@MinJieLiu

This comment has been minimized.

Copy link

MinJieLiu commented Aug 10, 2017

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

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

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

@popomore

@atian25

This comment has been minimized.

Copy link
Member

atian25 commented Aug 10, 2017

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

可以单独写个 egg-nextjs

@dead-horse

This comment has been minimized.

Copy link
Member

dead-horse commented Aug 12, 2017

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

@MinJieLiu MinJieLiu referenced this issue Aug 31, 2017

Closed

Can support egg.js? #2874

0 of 1 task complete
@hubcarl

This comment has been minimized.

Copy link

hubcarl commented Oct 25, 2017

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

@likeswinds

This comment has been minimized.

Copy link

likeswinds commented Dec 6, 2017

@popomore popomore closed this Mar 25, 2018

@djyde

This comment has been minimized.

Copy link

djyde commented Aug 7, 2018

@atian25

This comment has been minimized.

Copy link
Member

atian25 commented Aug 8, 2018

@fengmk2

This comment has been minimized.

Copy link
Member

fengmk2 commented Aug 8, 2018

@djyde serlina look beautiful!

@akshayKrSingh

This comment has been minimized.

Copy link

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

This comment has been minimized.

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

This comment has been minimized.

Copy link

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