alphatr / think-react-render

react server side rendering for thinkjs 2.x
14 stars 3 forks source link

view 里面标记和前端渲染结果不一致问题 #1

Closed alphatr closed 8 years ago

alphatr commented 8 years ago

如题:

在 view 文件中书写如下:

<div id="app">
    <App data={data} />
</div>

再次使用 React 在前端渲染会报错

Warning: render(): Target node has markup rendered by React, but there are unrelated nodes as well. This is most commonly caused by white-space inserted around server-rendered markup.