Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/docs/react-bindings.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ type MyComponentProps = { getFoo: (n: number) => Bar }
const MyComponent: React.FC<MyComponentProps> = (props: MyComponentProps) => {
// getFoo uses a signal under the hood, but we don't have direct access to that signal.
const n = 42
const foo: Bar = useValue('foo', () => props.getFoo(42), [props.getFoo, n])
const foo: Bar = useValue('foo', () => props.getFoo(n), [props.getFoo, n])
// ...
}
```
Expand Down