Docs
Lint / lint (push) Successful in 16s

This commit is contained in:
Julien Valverdé
2026-06-09 22:21:26 +02:00
parent ad1ef4a73b
commit 1cead4bb7b
+3 -2
View File
@@ -50,8 +50,9 @@ const CounterValueView = Component.make("CounterValue")(function* () {
}) })
``` ```
If state belongs to a single Effect-FC component instance but still benefits If state belongs to a single Effect-FC component instance, or to a shallow
from Lens/Subscribable APIs, create it with `Component.useOnMount`: hierarchy of subcomponents that receive it through props, create it with
`Component.useOnMount`:
```tsx ```tsx
import { Effect, SubscriptionRef } from "effect" import { Effect, SubscriptionRef } from "effect"