Skip to content

Commit

Permalink
Expand wrong example
Browse files Browse the repository at this point in the history
  • Loading branch information
zerobias authored Nov 8, 2024
1 parent 83c04d6 commit 31bf86e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/rules/mandatory-scope-binding.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ const GoodButton = () => {

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

0 comments on commit 31bf86e

Please sign in to comment.