Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
RenaudRohlinger authored Feb 8, 2023
1 parent de6ac2c commit 6497ade
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,14 @@ position?: 'top-right'|'top-left'|'bottom-right'|'bottom-left' // quickly set th
```jsx
import { Canvas } from '@react-three/fiber'
import { Perf } from 'r3f-perf'
;<Canvas>
<Perf />
</Canvas>

function App() {
return (
<Canvas>
<Perf />
</Canvas>
)
}
```

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

export default function App() {
function App() {
return (
<Canvas>
<PerfHook />
Expand Down

0 comments on commit 6497ade

Please sign in to comment.