From 31bf86ef048145b8c13588e6f8a4cc952bf21ddb Mon Sep 17 00:00:00 2001 From: Dmitry Date: Fri, 8 Nov 2024 14:59:06 +0500 Subject: [PATCH] Expand wrong example --- docs/rules/mandatory-scope-binding.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/rules/mandatory-scope-binding.md b/docs/rules/mandatory-scope-binding.md index 52c948e..3ce212e 100644 --- a/docs/rules/mandatory-scope-binding.md +++ b/docs/rules/mandatory-scope-binding.md @@ -15,6 +15,9 @@ const GoodButton = () => { // 👎 Event is not wrapped with `useUnit` - component is not suitable for isomorphic SSR app const BadButton = () => { - return ; + const onClick = () => { + increment() + } + return ; }; ```