Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quote #1944

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

quote #1944

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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