File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ An example:
14
14
15
15
``` jsx
16
16
function MyComponent () {
17
- // This condition depends on `window`. During the first render of the browser the `color` variable will be different
18
- const color = typeof window !== ' undefined' ? ' red' : ' blue
19
- // As color is passed as a prop there is a mismatch between what was rendered server-side vs what was rendered in the first render
20
- return <h1 className={`title ${color}`}>Hello World!</h1>
17
+ // This condition depends on `window`. During the first render of the browser the `color` variable will be different
18
+ const color = typeof window !== ' undefined' ? ' red' : ' blue'
19
+ // As color is passed as a prop there is a mismatch between what was rendered server-side vs what was rendered in the first render
20
+ return < h1 className= {` title ${ color} ` }> Hello World! < / h1>
21
21
}
22
22
```
23
23
You can’t perform that action at this time.
0 commit comments