Skip to content

Commit 5dec15c

Browse files
committed
feat: 使用jsx代替模版
1 parent 05b713e commit 5dec15c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/ssr-with-js/web/layout/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const Layout = (props) => {
3131
<div id='app'>{ commonNode(props) }</div>
3232
{
3333
serverData && <script dangerouslySetInnerHTML={{
34-
__html: `window.__USE_SSR__=true; window.__INITIAL_DATA__ =${serialize(serverData || {})}`
34+
__html: `window.__USE_SSR__=true; window.__INITIAL_DATA__ =${serialize(serverData)}`
3535
}} />
3636
}
3737
<div dangerouslySetInnerHTML={{

0 commit comments

Comments
 (0)