From 1a3bc814e1cb81f2d1d32d73ad9ae11c14b94ccd Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 8 Jul 2016 15:58:18 +0100 Subject: [PATCH] clarify event handlers --- code_style.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code_style.md b/code_style.md index c46592f244..9078d8cdb2 100644 --- a/code_style.md +++ b/code_style.md @@ -151,7 +151,7 @@ React // Bad {doStuff();}}> // Equally bad // Better - // Best + // Best, if onFooClick would do anything other than directly calling doStuff ``` - Think about whether your component really needs state: are you duplicating information in component state that could be derived from the model?