Skip to content

Commit 9914952

Browse files
committed
fix: <!-- not displayed in docs after changes
1 parent a0d729d commit 9914952

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

docs/javascript/code-splitting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Let's say you're requesting a page that needs to fetch a code chunk from the ser
1616

1717
> Warning: React attempted to reuse markup in a container but the checksum was invalid. This generally means that you are using server rendering and the markup generated on the server was not what the client was expecting. React injected new markup to compensate which works but you have lost many of the benefits of server rendering. Instead, figure out why the markup being generated is different on the client or server:
1818
19-
> (client) `react-empty: 1 -`
19+
> (client) `<!-- react-empty: 1 -`
2020
2121
> (server) `<div data-reactroot="`
2222

docs/outdated/deferred-rendering.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ Let's say you're requesting a page that needs to fetch a code chunk from the ser
1818
> (client) `<!-- react-empty: 1 -`
1919
2020
> (server) `<div data-reactroot="`
21-
<!--This comment is here because the comment beginning on line 13 messes up Sublime's markdown parsing-->
2221
2322
Different markup is generated on the client than on the server. Why does this happen? When you register a component or Render-Function with `ReactOnRails.register`, React on Rails will by default render the component as soon as the page loads. However, code splitting requires that components render at a later time when the JavaScript chunks have loaded.
2423

0 commit comments

Comments
 (0)