Page MenuHomePhabricator

POC for universal page component with data fetching
Closed, ResolvedPublic

Description

In order to ease development on the parent Epic, implement a POC in universal-webpack-code-splitting with a pages/article.js that renders an article from an API.

The article must:

  • On 1st visit
    • render on the server side in node
    • start the app on the client transparently (no extra requests for data)
  • On 2nd visit
    • render the article on the client side
    • fetching the data

As much code as possible must be universal, so that server and client share data sources and rendering code.