Skip to content

Commit e0773ff

Browse files
committed
Merge pull request #60 from ipeters90/renderToString-update
update deprecated renderToString api in example
2 parents 04cd47c + 37c50ea commit e0773ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ function makeSandwichesForEverybody() {
246246
store.dispatch(
247247
makeSandwichesForEverybody()
248248
).then(() =>
249-
response.send(React.renderToString(<MyApp store={store} />))
249+
response.send(ReactDOMServer.renderToString(<MyApp store={store} />))
250250
);
251251

252252
// I can also dispatch a thunk async action from a component

0 commit comments

Comments
 (0)