main
js 28 lines 763 Bytes
Raw
1 /**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 */
8
9 export default function Post() {
10 return (
11 <>
12 <h1>Hello world</h1>
13 <p>
14 This demo is <b>artificially slowed down</b>. Open{' '}
15 <code>server/delays.js</code> to adjust how much different things are
16 slowed down.
17 </p>
18 <p>
19 Notice how HTML for comments "streams in" before the JS (or React) has
20 loaded on the page.
21 </p>
22 <p>
23 Also notice that the JS for comments and sidebar has been code-split,
24 but HTML for it is still included in the server output.
25 </p>
26 </>
27 );
28 }