diff --git a/packages/docs/docs/state-management.md b/packages/docs/docs/state-management.md index c1f685e..8e2a84c 100644 --- a/packages/docs/docs/state-management.md +++ b/packages/docs/docs/state-management.md @@ -50,8 +50,9 @@ const CounterValueView = Component.make("CounterValue")(function* () { }) ``` -If state belongs to a single Effect-FC component instance but still benefits -from Lens/Subscribable APIs, create it with `Component.useOnMount`: +If state belongs to a single Effect-FC component instance, or to a shallow +hierarchy of subcomponents that receive it through props, create it with +`Component.useOnMount`: ```tsx import { Effect, SubscriptionRef } from "effect"