분류 javascript

Redux App을 위한 원스톱 솔루션!

컨텐츠 정보

  • 조회 203 (작성일 )

본문

https://github.com/reactGo/reactGo

Redux 예측 상태 컨테이너.

보편적인 렌더링

서버측 렌더링시 비동기 데이터 가져 오기

 

Express app.use() receives a request
-> Calls a pre-built webpack file for the server
-> Runs matching of routes in react-router for server
-> Makes async data fetching request
-> Renders Route component to string
-> Construct HTML file (with Meta, Link tags using helmet)
-> Browser receives html file with initial state
-> Client side React.JS kicks in and initializes with given state
-> Continues where it left off
-> Everyone is happy :)