Skip to content

Commit

Permalink
quote
Browse files Browse the repository at this point in the history
  • Loading branch information
abernier committed May 1, 2024
1 parent 1c676bc commit b4d58a9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1118,6 +1118,25 @@ useHelper(condition && mesh, BoxHelper, 'red') // you can pass false instead of
<mesh ref={mesh} ... />
```

<details>

@drcmda [said](https://discord.com/channels/740090768164651008/741751532592038022/1016471308416065586):

> drei/useHelper makes this a bit easier, because otherwise it would be:
>
> ```tsx
> const [light, set] = useState()
>
> return (
> <>
> <pointLight ref={set} />
> {light && <pointLightHelper args={[light]} />
> ```
>
> which sucks
</details>
#### Helper
[![](https://img.shields.io/badge/-storybook-%23ff69b4)](https://drei.vercel.app/?path=/story/gizmos-helper--default-story)
Expand Down

0 comments on commit b4d58a9

Please sign in to comment.