zen-js-code/react-universal-web-apps
소개
The basis for the entire application stack, this application starts (and ends) with client-side React, with no handling of rendering on the server. The data is not retrieved, rather fed via props from the top level route.
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalReact SSR Example Application
The application contains several variants, each in its separate branch, progressively demonstrating various paradigms for writing universal JavaScript with React, React Router, Node and Express.
Enjoy.
Simple Application
The application is under simple branch.
The basis for the entire application stack, this application starts (and ends) with client-side React, with no handling of rendering on the server. The data is not retrieved, rather fed via props from the top level route.
Naive Universal Application
The application is under simple+ssr branch.
This version of the application performs the following:
- render HTML on server, based on data necessary
- deliver the HTML to the browser
- send the data , used to render the HTML, to the browser as well
- allow React to resolve the necessary re-renders
A Little Less Naive Universal Application
The application is under simple+ssr+context branch.
This application improves on the previous variant by abstracting data propagation and delegating it to React Context. This is achieved by introducing a new wrapper component that does most of the "heavy" lifting required for Context usage in React components.
More Complex, But Still Naive, Application
The application is under simple+ssr+context+promises branch.
This application expands the previous by adding another page and delegating data retrieval to static methods on the components themselve (limited to Route components).
Flux Universal Application
The application is under flux+ssr+context+promises branch.
This variant of the application makes the transformation from our naive Flux-less application to still (hopefully less) somewhat naive Flux-full one.
관련 프로젝트 살펴보기
불러오는 중…