服务端渲染成功,但是warning的内容和老师的不同
来源:2-5 服务端渲染基础配置

HQin龍
2018-06-26
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.
我用的是上面这种写法,但是浏览器报了上面的错误,是我的写法导致的吗
写回答
1回答
-
你在服务端渲染的时候拼接html的时候有了多余的空格吧
022018-07-02
相似问题