We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b3366f commit 83c04d6Copy full SHA for 83c04d6
docs/rules/mandatory-scope-binding.md
@@ -6,14 +6,14 @@ This ensures `Fork API` compatibility and allows writing isomorphic code for SSR
6
```tsx
7
const increment = createEvent();
8
9
-// 👍 Event usage is wrapped with `useEvent`
+// 👍 Event usage is wrapped with `useUnit`
10
const GoodButton = () => {
11
const incrementEvent = useUnit(increment);
12
13
return <button onClick={incrementEvent}>+</button>;
14
};
15
16
-// 👎 Event is not wrapped with `useEvent` - component is not suitable for isomorphic SSR app
+// 👎 Event is not wrapped with `useUnit` - component is not suitable for isomorphic SSR app
17
const BadButton = () => {
18
return <button onClick={increment}>+</button>;
19
0 commit comments