Skip to content

Commit 83c04d6

Browse files
authored
Update mandatory binding examples
1 parent 6b3366f commit 83c04d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/rules/mandatory-scope-binding.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ This ensures `Fork API` compatibility and allows writing isomorphic code for SSR
66
```tsx
77
const increment = createEvent();
88

9-
// 👍 Event usage is wrapped with `useEvent`
9+
// 👍 Event usage is wrapped with `useUnit`
1010
const GoodButton = () => {
1111
const incrementEvent = useUnit(increment);
1212

1313
return <button onClick={incrementEvent}>+</button>;
1414
};
1515

16-
// 👎 Event is not wrapped with `useEvent` - component is not suitable for isomorphic SSR app
16+
// 👎 Event is not wrapped with `useUnit` - component is not suitable for isomorphic SSR app
1717
const BadButton = () => {
1818
return <button onClick={increment}>+</button>;
1919
};

0 commit comments

Comments
 (0)