Skip to content

Commit eee5701

Browse files
committed
fix sandpack
1 parent 358c4ca commit eee5701

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/content/reference/react/use-client.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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
6868
import FancyText from './FancyText';
6969
import InspirationGenerator from './InspirationGenerator';
7070
import Copyright from './Copyright';
@@ -82,15 +82,15 @@ export default function App() {
8282

8383
```
8484

85-
```js src/FancyText.js
85+
```js FancyText.js
8686
export 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

9696
import { useState } from 'react';
@@ -113,13 +113,13 @@ export default function InspirationGenerator({children}) {
113113
}
114114
```
115115

116-
```js src/Copyright.js
116+
```js Copyright.js
117117
export default function Copyright({year}) {
118118
return <p className='small'>©️ {year}</p>;
119119
}
120120
```
121121

122-
```js src/inspirations.js
122+
```js inspirations.js
123123
export 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

292292
import { useState } from 'react';

0 commit comments

Comments
 (0)