Skip to content

Commit 00e8599

Browse files
committed
Specify source files in code examples for useLayoutEffect documentation
1 parent d05b45b commit 00e8599

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/reference/react/useLayoutEffect.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ Here is the same example, but with [`useEffect`](/reference/react/useEffect) ins
410410
411411
<Sandpack>
412412
413-
```js
413+
```js src/App.js
414414
import ButtonWithTooltip from './ButtonWithTooltip.js';
415415

416416
export default function App() {
@@ -484,7 +484,7 @@ export default function ButtonWithTooltip({ tooltipContent, ...rest }) {
484484
}
485485
```
486486
487-
```js
487+
```js src/Tooltip.js
488488
import { useRef, useEffect, useState } from 'react';
489489
import { createPortal } from 'react-dom';
490490
import TooltipContainer from './TooltipContainer.js';

0 commit comments

Comments
 (0)