Skip to content

Commit fc66ded

Browse files
committed
Updated description to provide more context
I've found this rule really helpful on Flux/Redux apps that don't use forms. I typically only use setState when working with forms.
1 parent e3c27f9 commit fc66ded

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rules/no-set-state.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Prevent usage of setState (no-set-state)
22

3-
When using an architecture that separates your application state from your UI components (e.g. Flux), it may be desirable to forbid the use of local component state.
3+
When using an architecture that separates your application state from your UI components (e.g. Flux), it may be desirable to forbid the use of local component state. This rule is especially helpful in read-only applications (that don't use forms), since local component state should rarely be necessary in such cases.
44

55
## Rule Details
66

0 commit comments

Comments
 (0)