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?