如何让 React-Router 呈现服务器的交互式输出?

How to make React-Router to render an interactive output from the server?

我现在正在尝试使用 react-routerexpress.js。我的最终 objective 是:

到目前为止我得到了什么:

我的问题:

如果您在客户端上调用 React.render(component, element),其中 element 指向一个 DOM 节点,该节点包含服务器呈现的 React 标记并且 component 使用相同的实例化props 与服务器上一样(并假设 props/state 一直匹配),React 将透明地将您的静态标记升级为交互式 React 应用程序。

参见 this JSFiddle example that demonstrates this technique: http://jsfiddle.net/BinaryMuse/ddvdppeg/(请注意,在标记升级为交互式应用程序之前有 1 秒的延迟,但仅用于演示目的)。