Skip to content

Commit

Permalink
Add placeholder element to fixtures/ssr to keep it focused in DevTools (
Browse files Browse the repository at this point in the history
facebook#10085)

When going through the fixtures one by one it's convenient to see the server-side rendered markup in the Chrome DevTools Elements along with the generated warning in Console. The placeholder element adds consistency to the markup: it does not disappear with page reloads, so Chrome DevTools is smart enough to keep it focused.
  • Loading branch information
sompylasar committed Jun 9, 2018
1 parent dc2db7b commit 974d3bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fixtures/ssr/src/components/SSRMismatchTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,9 @@ export default class SSRMismatchTest extends Component {
))}
</ol>
</div>
{content}
<div className="SSRMismatchTest__placeholder">
{content}
</div>
</div>
);
}
Expand Down

0 comments on commit 974d3bc

Please sign in to comment.