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.
6464
6565<Sandpack >
6666
67- ``` js src/ App.js
67+ ``` js App.js
6868import FancyText from ' ./FancyText' ;
6969import InspirationGenerator from ' ./InspirationGenerator' ;
7070import Copyright from ' ./Copyright' ;
@@ -82,15 +82,15 @@ export default function App() {
8282
8383```
8484
85- ``` js src/ FancyText.js
85+ ``` js FancyText.js
8686export default function FancyText ({title, text}) {
8787 return title
8888 ? < h1 className= ' fancy title' > {text}< / h1>
8989 : < h3 className= ' fancy cursive' > {text}< / h3>
9090}
9191```
9292
93- ``` js src/ InspirationGenerator.js
93+ ``` js InspirationGenerator.js
9494' use client' ;
9595
9696import { useState } from ' react' ;
@@ -113,13 +113,13 @@ export default function InspirationGenerator({children}) {
113113}
114114```
115115
116- ``` js src/ Copyright.js
116+ ``` js Copyright.js
117117export default function Copyright ({year}) {
118118 return < p className= ' small' > ©️ {year}< / p> ;
119119}
120120```
121121
122- ``` js src/ inspirations.js
122+ ``` js inspirations.js
123123export default [
124124 " Don’t let yesterday take up too much of today.” — Will Rogers" ,
125125 " Ambition is putting a ladder against the sky." ,
@@ -286,7 +286,7 @@ Notably, these are not supported:
286286
287287<Sandpack >
288288
289- ``` js src/ App.js
289+ ``` js App.js
290290' use client' ;
291291
292292import { useState } from ' react' ;
You can’t perform that action at this time.
0 commit comments