File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/content/reference/react Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ To better illustrate this, consider the following React Server Components app.
64
64
65
65
<Sandpack >
66
66
67
- ``` js src/ App.js
67
+ ``` js App.js
68
68
import FancyText from ' ./FancyText' ;
69
69
import InspirationGenerator from ' ./InspirationGenerator' ;
70
70
import Copyright from ' ./Copyright' ;
@@ -82,15 +82,15 @@ export default function App() {
82
82
83
83
```
84
84
85
- ``` js src/ FancyText.js
85
+ ``` js FancyText.js
86
86
export default function FancyText ({title, text}) {
87
87
return title
88
88
? < h1 className= ' fancy title' > {text}< / h1>
89
89
: < h3 className= ' fancy cursive' > {text}< / h3>
90
90
}
91
91
```
92
92
93
- ``` js src/ InspirationGenerator.js
93
+ ``` js InspirationGenerator.js
94
94
' use client' ;
95
95
96
96
import { useState } from ' react' ;
@@ -113,13 +113,13 @@ export default function InspirationGenerator({children}) {
113
113
}
114
114
```
115
115
116
- ``` js src/ Copyright.js
116
+ ``` js Copyright.js
117
117
export default function Copyright ({year}) {
118
118
return < p className= ' small' > ©️ {year}< / p> ;
119
119
}
120
120
```
121
121
122
- ``` js src/ inspirations.js
122
+ ``` js inspirations.js
123
123
export default [
124
124
" Don’t let yesterday take up too much of today.” — Will Rogers" ,
125
125
" Ambition is putting a ladder against the sky." ,
@@ -286,7 +286,7 @@ Notably, these are not supported:
286
286
287
287
<Sandpack >
288
288
289
- ``` js src/ App.js
289
+ ``` js App.js
290
290
' use client' ;
291
291
292
292
import { useState } from ' react' ;
You can’t perform that action at this time.
0 commit comments