-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from tiffine-koch/master
Updates above-the-fold demo + docs
- Loading branch information
Showing
2 changed files
with
125 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 19 additions & 15 deletions
34
samples/universal-react-node/client/components/above-the-fold.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,28 @@ | ||
import React from "react"; | ||
import {AboveTheFoldOnlyServerRender} from "above-the-fold-only-server-render"; | ||
|
||
export class AboveFold extends React.Component { | ||
|
||
render() { | ||
return ( | ||
// <AboveTheFoldOnlyServerRender skip={true}> | ||
<div className="renderMessage" style={{color: "blue"}}> | ||
<h3>Above-the-fold-only-server-render: Increase Your Performance</h3> | ||
<p>This will skip server rendering if the 'AboveTheFoldOnlyServerRender' | ||
lines are present, or uncommented out.</p> | ||
<p>This will be rendered on the server and visible if the 'AboveTheFoldOnlyServerRender' | ||
lines are commented out.</p> | ||
<p>Try manually toggling this component to see it in action</p> | ||
<p> | ||
<a href="https://github.com/electrode-io/above-the-fold-only-server-render" | ||
target="_blank">Read more about this module and see our live demo | ||
</a> | ||
</p> | ||
</div> | ||
// </AboveTheFoldOnlyServerRender> | ||
<div> | ||
<h3>Above-the-fold-only-server-render: Increase Your Performance</h3> | ||
<AboveTheFoldOnlyServerRender skip={true}> | ||
<div className="renderMessage" style={{color: "blue"}}> | ||
<p>This will skip server rendering if the 'AboveTheFoldOnlyServerRender' | ||
lines are present, or uncommented out.</p> | ||
<p>This will be rendered on the server and visible if the 'AboveTheFoldOnlyServerRender' | ||
lines are commented out.</p> | ||
<p>Try manually toggling this component to see it in action</p> | ||
<p> | ||
<a href="https://github.com/electrode-io/above-the-fold-only-server-render" | ||
target="_blank">Read more about this module and see our live demo | ||
</a> | ||
</p> | ||
</div> | ||
</AboveTheFoldOnlyServerRender> | ||
<h3>This is below the 'Above the fold closing tag'</h3> | ||
</div> | ||
); | ||
} | ||
} |