Skip to content

Commit 6497ade

Browse files
Update README.md
1 parent de6ac2c commit 6497ade

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,14 @@ position?: 'top-right'|'top-left'|'bottom-right'|'bottom-left' // quickly set th
5353
```jsx
5454
import { Canvas } from '@react-three/fiber'
5555
import { Perf } from 'r3f-perf'
56-
;<Canvas>
57-
<Perf />
58-
</Canvas>
56+
57+
function App() {
58+
return (
59+
<Canvas>
60+
<Perf />
61+
</Canvas>
62+
)
63+
}
5964
```
6065

6166
#### Usage without interface : PerfHeadless
@@ -73,7 +78,7 @@ const PerfHook = () => {
7378
return <PerfHeadless />
7479
}
7580

76-
export default function App() {
81+
function App() {
7782
return (
7883
<Canvas>
7984
<PerfHook />

0 commit comments

Comments
 (0)